Methods and systems for invoking code in a different programming language

ABSTRACT

Programmer input in a first programming language is received, the programmer input including i) a built-in function of the first programming language, the built-in function corresponding to generating code for remotely invoking an electronic object deployed, or to be deployed, on a server via a communication network, and ii) a parameter that indicates the electronic object, wherein the code for invoking the electronic object comprises a) code in a second programming language different than the first programming language, or b) code in a markup language interpretable by a web browser. The programmer input is evaluated to: i) generate the code for remotely invoking the electronic object deployed, or to be deployed, on the server, and ii) if the electronic object is not yet deployed on the server, deploy the electronic object on the server. The code for remotely invoking the electronic object is generated for inclusion in a file corresponding to a web page or a program written in the second programming language.

CROSS-REFERENCES TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.15/485,923, filed Apr. 12, 2017, entitled “Methods and Systems forGenerating Electronic Forms,” which is a continuation of U.S. patentapplication Ser. No. 15/483,121, filed Apr. 10, 2017, entitled “Methodsand Systems for Generating Application Programming Interfaces,” which isa continuation of U.S. patent application Ser. No. 14/549,541, filedNov. 20, 2014, now U.S. Pat. No. 9,619,217, entitled “Methods andSystems for Cloud Computing,” which claims the benefit of U.S.Provisional Application No. 61/906,888, filed Nov. 20, 2013, entitled“Cloud Computing Platform.” All of the applications referenced above arehereby incorporated by reference herein in their entireties.

FIELD OF THE DISCLOSURE

The present disclosure generally relates to cloud computing, and moreparticularly, systems that enable development and deployment ofelectronic forms.

BACKGROUND

The present availability of high-capacity networks, computing power, andstorage, as well as the widespread adoption of hardware virtualization,service-oriented architecture, and autonomic and utility computing haveled to a growth in cloud computing.

In cloud computing, multiple remote servers (usually a large number) arenetworked to allow centralized data storage and online access tocomputer services or resources. Cloud resources are typically shared bymultiple users and also dynamically reallocated based on demand.

Platform as a Service (PaaS) is a category of cloud computing servicesin which a computing platform and a solution stack are provided as aservice. In PaaS, a provider provides a user with tools and/or librariesfor creating an application or service to be hosted on the provider'splatform, i.e., servers, storage, and other services that are requiredto host users' applications. Since PaaS systems typically support only alimited number of programming languages and frameworks, however,adopting a PaaS system may require utilizing an unfamiliar languageand/or programming framework. PaaS systems often are also inflexible.

Many software programs prompt a user to enter information via acomputer. The user interfaces utilized to elicit user information areoften referred to as forms. Writing software to generate such forms istypically time consuming.

Some electronic forms are designed as web pages so that a user canaccess and enter data into a form using a web browser. Web documents maycontain content, markup language (e.g., Hypertext Markup Language(HTML), Extensible Hypertext Markup Language (XHTML), Extensible MarkupLanguage (XML), etc.) elements, style sheets (e.g., Cascading StyleSheets (CSS)), scripts (e.g., JAVASCRIPT®, etc.). Designing webdocuments using HTML, XHTML, etc., can be time consuming.

WYSIWYG (what you see is what you get) website builders are tools thatprovide a visual interface for website design; that is, the user of aWYSIWYG website builder is not required to learn code. Such websitebuilders have a gentle learning curve and allow novices to build awebsite and get it running live on the Internet relatively quickly,although designing web documents using a WYSIWYG builder is still timeconsuming. Additionally, website builders are inflexible and havelimitations with respect to creating web pages that differ from a fixedset of templates.

On the other hand, web editors are tools to facilitate manualconstruction of websites, and are highly flexible as compared to websitebuilders. As with other web design tools, designing web documents usinga web editor is time consuming. Additionally, web editors typicallyrequire users to have significant knowledge of web page coding andlanguages (e.g., HTML, XML, CSS, JAVASCRIPT®, etc.).

SUMMARY OF THE DISCLOSURE

In an embodiment, a method includes receiving, at one or more computers,programmer input in a first programming language, the programmer inputincluding i) a built-in function of the first programming language, thebuilt-in function corresponding to generating code for remotely invokingan electronic object deployed, or to be deployed, on a server via acommunication network, and ii) a parameter that indicates the electronicobject, wherein the code for invoking the electronic object comprises a)code in a second programming language different than the firstprogramming language, or b) code in a markup language interpretable by aweb browser. The method also includes evaluating, at one or morecomputers, the programmer input to: i) generate the code for remotelyinvoking the electronic object deployed, or to be deployed, on theserver, and ii) if the electronic object is not yet deployed on theserver, deploy the electronic object on the server. The code forremotely invoking the electronic object is generated for inclusion in afile corresponding to a web page or a program written in the secondprogramming language.

In another embodiment, a system comprises: one or more processors; andone or more memory devices coupled to the one or more processors. Theone or more memories store machine readable instructions that, whenexecuted by the one or more processors, cause the one or more processorsto: receive programmer input in a first programming language, theprogrammer input including i) a built-in function of the firstprogramming language, the built-in function corresponding to generatingcode for remotely invoking an electronic object deployed, or to bedeployed, on a server via a communication network, and ii) a parameterthat indicates the electronic object, wherein the code for invoking theelectronic object comprises a) code in a second programming languagedifferent than the first programming language, or b) code in a markuplanguage interpretable by a web browser; and evaluate the programmerinput to: i) generate the code for remotely invoking the electronicobject deployed, or to be deployed, on the server, and ii) if theelectronic object is not yet deployed on the server, deploy theelectronic object on the server. The code for remotely invoking theelectronic object is generated for inclusion in a file corresponding toa web page or a program written in the second programming language.

In yet another embodiment, a tangible, non-transitory computer readablemedium, or media, stores machine readable instructions that, whenexecuted by one or more computer processors, cause the one or morecomputer processors to: receive programmer input in a first programminglanguage, the programmer input including i) a built-in function of thefirst programming language, the built-in function corresponding togenerating code for remotely invoking an electronic object deployed, orto be deployed, on a server via a communication network, and ii) aparameter that indicates the electronic object, wherein the code forinvoking the electronic object comprises a) code in a second programminglanguage different than the first programming language, or b) code in amarkup language interpretable by a web browser; and evaluate theprogrammer input to: i) generate the code for remotely invoking theelectronic object deployed, or to be deployed, on the server, and ii) ifthe electronic object is not yet deployed on the server, deploy theelectronic object on the server. The code for remotely invoking theelectronic object is generated for inclusion in a file corresponding toa web page or a program written in the second programming language.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram of an example system for cloud-based developmentsystem, according to an embodiment.

FIG. 2A is an example of programmer input utilized to deploy auser-manipulatable 3-dimensional (3D) plot to a network-accessiblestorage, according to an embodiment.

FIG. 2B illustrates an example web page that a user can access afterevaluation of the programmer input of FIG. 2A, according to anembodiment.

FIG. 3 is an example of programmer input utilized to store and retrievean object to/from network-accessible storage, according to anembodiment.

FIG. 4 is a flow diagram of an example method for deploying an object tonetwork-accessible storage, according to an embodiment.

FIG. 5 is a flow diagram of an example method for storing an object tonetwork-accessible storage, according to an embodiment.

FIG. 6 is a flow diagram of an example method for retrieving an objectfrom network-accessible storage, according to an embodiment.

FIG. 7 is a diagram of an example system for generating electronicforms, according to an embodiment.

FIG. 8 is a diagram of another example system for generating electronicforms, according to another embodiment.

FIG. 9 is a flow diagram of an example method for generating electronicforms, according to an embodiment.

FIG. 10A is an example of programming input that may be utilized togenerate an electronic form, according to an embodiment.

FIG. 10B is an illustration of an electronic form generated in responseto the programming input of FIG. 10A, according to an embodiment.

FIG. 11A is an example of programming input that may be utilized togenerate an electronic form, according to an embodiment.

FIG. 11B is an illustration of an electronic form generated in responseto the programming input of FIG. 11A, according to an embodiment.

FIG. 12A is an example of programming input that may be utilized togenerate an electronic form, according to an embodiment.

FIG. 12B is an illustration of an electronic form generated in responseto the programming input of FIG. 12A, according to an embodiment.

FIG. 13A is an example of programming input that may be utilized togenerate an electronic form, according to an embodiment.

FIG. 13B is an illustration of an electronic form generated in responseto the programming input of FIG. 13A, according to an embodiment.

FIG. 14A is an example of programming input that may be utilized togenerate an electronic form, according to an embodiment.

FIG. 14B is an illustration of an electronic form generated in responseto the programming input of FIG. 14A, according to an embodiment.

FIG. 15A is an example of programming input that may be utilized togenerate an electronic form, according to an embodiment.

FIG. 15B is an illustration of an electronic form generated in responseto the programming input of FIG. 15A, according to an embodiment.

FIG. 16A is an example of programming input that may be utilized togenerate an electronic form, according to an embodiment.

FIG. 16B is an illustration of an electronic form generated in responseto the programming input of FIG. 16A, according to an embodiment.

FIG. 17A is an example of programming input that may be utilized togenerate an electronic form, according to an embodiment.

FIG. 17B is an illustration of an electronic form generated in responseto the programming input of FIG. 17A, according to an embodiment.

FIGS. 18A-C are examples of programming input that may be utilized togenerate electronic forms, according to some embodiments.

FIG. 19A is an example of programming input that may be utilized togenerate an electronic form, according to an embodiment.

FIG. 19B is an illustration of an electronic form generated in responseto the programming input of FIG. 19A, according to an embodiment.

FIG. 20A is an example of programming input that may be utilized togenerate an electronic form, according to an embodiment.

FIG. 20B is an illustration of an electronic form generated in responseto the programming input of FIG. 20A, according to an embodiment.

FIG. 20C is an illustration of output generated in response to userinput received via the electronic form of FIG. 20B, according to anembodiment.

FIG. 21 is a diagram of an example system for generating applicationprogramming interfaces (APIs), according to an embodiment.

FIG. 22 is a diagram of another example system for generating APIs,according to another embodiment.

FIG. 23 is a flow diagram of an example method for generating APIs,according to another embodiment.

FIG. 24A is an illustration of a notebook including example programmerinput for generating an API, according to an embodiment.

FIG. 24B is an illustration of a notebook including example programmerinput for invoking an API, according to an embodiment.

FIG. 25A is an illustration of a notebook including example programmerinput for generating an API and deploying the API to network-accessiblestorage, according to an embodiment.

FIG. 25B is an illustration of a web page generated by invoking an API,according to an embodiment.

FIG. 26 is a diagram of an example system for interacting with a devicethat includes sensors and/or actuators for interacting with the realworld, according to an embodiment.

FIG. 27 is an illustration of an example graphical user interface forinteracting with a device, according to an embodiment.

FIG. 28 is an illustration of a notebook of a computational applicationincluding example programmer input for interacting with a remote device,according to an embodiment.

FIG. 29 is an illustration of a notebook of the computationalapplication including example programmer input for interacting with aremote device, according to an embodiment.

FIG. 30 is an illustration of a notebook of the computationalapplication including example programmer input for interacting with aremote device, according to an embodiment.

FIG. 31 is an illustration of a notebook of the computationalapplication including example programmer input for interacting with aremote device, according to an embodiment.

FIG. 32A is an illustration of a notebook including example programmerinput in a first programming language for generating code in a secondprogramming language for accessing an API deployed to network-accessiblestorage, according to an embodiment.

FIG. 32B is an illustration of a web page that includes the code foraccessing an API deployed to network-accessible storage, according to anembodiment.

FIG. 33 is an illustration of a notebook including example programmerinput in a first programming language for generating code in a secondprogramming language for accessing an API deployed to network-accessiblestorage, according to an embodiment.

FIG. 34 is an illustration of a notebook including example programmerinput in a first programming language for generating code in a secondprogramming language for accessing an API deployed to network-accessiblestorage, according to an embodiment.

FIG. 35 is an illustration of a notebook including example programmerinput in a first programming language for generating code in a secondprogramming language for accessing an API deployed to network-accessiblestorage, according to an embodiment.

FIG. 36 is an illustration of a notebook including example programmerinput in a first programming language for generating code in a secondprogramming language for accessing an API deployed to network-accessiblestorage, according to an embodiment.

FIG. 37 is a flow diagram of an example method for using programmerinput in a first programming language to generate code in a secondprogramming language for accessing an object deployed tonetwork-accessible storage, according to an embodiment.

DETAILED DESCRIPTION

FIG. 1 is a diagram of an example system 100 for creating cloud objects,deploying objects to a cloud server system, and/or utilizing cloudservices provided by the cloud server system, according to anembodiment. Examples of cloud objects include data, programs, functions,forms, application programming interfaces (APIs), etc., according tovarious embodiments. The cloud server system may make cloud objectsprivately and/or publicly available via a network such as an intranet,an extranet, the Internet, etc.

In various embodiments, the system 100 cloud-based computingarchitecture facilitates integration between and among desktopapplications, mobile applications, web-based applications, hobbyistapplications, etc. For example, in various embodiments, the system 100supports one of or any suitable combination of two or more ofprogramming infrastructure (e.g., various software developmentactivities); data analytics infrastructure (e.g., analysis of big data);remote processing infrastructure (e.g., including cloud storage andexecution of user-defined functions and computer code); programminglanguage translation/generation infrastructure (e.g., providingtranslation between programming languages and/or automated generation ofcomputer code); application programming interface (API) infrastructure(e.g., operable to automatically generate, implement, and/or documentAPIs according to use specifications; and other infrastructure asdescribed below. The infrastructure may be software or hardware basedinfrastructure, or a combination of both software and hardwareinfrastructure.

In an embodiment, the system 100 includes one or more computers, such asa computer 102. The computer 102 includes one or more processors 104 andone or more memory devices 108. The computer 102 also includes, or iscoupled to, one or more input devices 112. Additionally, the computer102 includes, or is coupled to, one or more display devices 116. In someembodiments, the computer 102 includes one or more network interfacedevices 120. The one or more processors 104, the one or more memorydevices 108, the one or more input devices 112 (sometime referred toherein as “the input device 112” for brevity), the one or more displaydevices 116 (sometime referred to herein as “the display device 116” forbrevity), the one or more network interface devices 120 (sometimereferred to herein as “the network interface device 120” for brevity),etc., may be communicatively coupled via one or more busses 124(sometime referred to herein as “the bus 124” for brevity). In otherembodiments, the computer 102 may have other suitable structures and/orcomponents.

The one or more processors 104 (sometime referred to herein as “theprocessor 104” for brevity) may comprise one or more general purposeprocessors (e.g., a central processing unit), one or more specialpurpose processors (e.g., a co-processor, a graphics processor, etc.).At least one of the one or more processors 104 executes machine readableinstructions stored in the memory 108. The one or more memory devices108 (sometime referred to herein as “the memory 108” for brevity)include one or more of random access memory (RAM), read only memory(ROM), a FLASH memory, a magnetic disk drive, an optical disk drive,etc.

The one more input devices 112 include one or more suitable inputdevices such as a keyboard, a key pad, a mouse, a trackball, one or morebuttons, a touch screen that overlays a display device, etc. The one ormore network interface devices 120 comprise one or more suitable networkinterface devices (NICs) such as a wired network NIC, a wireless networkNIC, etc.

In some embodiments, the memory 108 may store a computationalapplication 140 such as the MATHEMATICA® computational application fromWolfram Research, Inc., a spreadsheet application, etc., where thecomputational application 140 is configured to create cloud objects,deploy objects to a cloud server system, and/or utilize cloud servicesprovided by the cloud server system. For example, in an embodiment, thecomputational application 140 may include a cloud-based developmentfront end 144 that enables creation of cloud objects, deployment ofobjects to the cloud server system, and/or utilization of cloud servicesprovided by the cloud server system, according to various embodiments.In some embodiments, the computational application 140 is configured toprovide an electronic user interface such as a workspace (e.g., anotebook, a spreadsheet, a document, etc.) in which a user can entersoftware code and/or functions to be evaluated, cause the functions tobe evaluated, and/or view results of the evaluations.

In some embodiments, however, the computational application 140 isomitted and the cloud-based development front end 144 is a standaloneapplication and/or module. In some embodiments, the cloud-baseddevelopment front end 144 is incorporated into another suitableapplication different than the computational application 140.

In various embodiments, the computer 102 comprises a desktop computer, aworkstation, a laptop computer, a tablet computer, a smart phone, apersonal digital assistant, a gaming system, a server, etc.

In some embodiments, the computer 102 (and/or other computers (notshown) are coupled to a network 150. The network 150 may comprise one ormore of a local area network (LAN), a wide area network (WAN), ametropolitan area network (MAN), a mobile communications network, anintranet, an extranet, the Internet, etc.

In some embodiments, the system 100 may include one or more servers suchas the server 152. FIG. 1 illustrates a single server 152 for brevity,but the system 100 includes multiple other similarly configured serversin some embodiments. In some embodiments, multiple servers (includingthe server 152) are networked together to provide online access to datastorage and computer services or resources via the network 150. Oneserver 152 will be discussed in detail with respect to FIG. 1, and otherservers (if included) have the same or a similar suitable structure, insome embodiments.

The server 152 includes one or more processors 154 and one or morememory devices 158. The server 152 also may include, or be coupled to,one or more input devices 162. The server 152 includes one or morenetwork interface devices 170. The one or more processors 154, the oneor more memory devices 158, the one or more input devices 162 (sometimereferred to herein as “the input device 162” for brevity), the one ormore network interface devices 170 (sometime referred to herein as “thenetwork interface device 170” for brevity), etc., may be communicativelycoupled via one or more busses 174 (sometime referred to herein as “thebus 174” for brevity). In other embodiments, the server 152 may haveother suitable structures and/or components.

The one or more processors 154 (sometime referred to herein as “theprocessor 154” for brevity) may comprise one or more general purposeprocessors (e.g., a central processing unit), one or more specialpurpose processors (e.g., a co-processor, a graphics processor, etc.).At least one of the one or more processors 154 executes machine readableinstructions stored in the memory 158. The one or more memory devices158 (sometime referred to herein as “the memory 158” for brevity)include one or more of random access memory (RAM), read only memory(ROM), a FLASH memory, a magnetic disk drive, an optical disk drive,etc.

The one more input devices 162 include one or more suitable inputdevices such as a keyboard, a key pad, a mouse, a trackball, one or morebuttons, a touch screen that overlays a display device, etc. The one ormore network interface devices 170 comprise one or more suitable NICssuch as a wired network NIC, a wireless network NIC, etc. The server 152is communicatively coupled to the computer 102 and other computers (notshown) via the communication network 150. The server 152 may becommunicatively coupled to other cloud servers (not shown) via anothernetwork (not shown) and/or the network 150, in various embodiments.

Additionally, in some embodiments, the server 152 may be communicativelycoupled to a cloud storage database system 180, which may comprise oneor more suitable databases. The cloud storage database system 180 storesobjects (cloud objects) 184 that are accessible, via the server 152 oranother server, to computers (e.g., the computer 102) via the network150.

In an embodiment, the memory 158 may store a cloud-based developmentsystem 188. In various embodiments, the cloud-based development system188 is configured to interface with the cloud-based development frontend 144 to transfer objects from the computer 102, to store objects inthe cloud storage database 180, and/or to make objects 192 in the cloudstorage database 180 accessible to computers via the network 150. Insome embodiments, the computational application 140 is implemented as akernel running on the server 152 and a front end running on the computer102. In such embodiments, the cloud-based development system 188includes the kernel. In some embodiments, the computational application140 is included in the cloud-based development system 188 and thecomputer 102 runs a thin client such as a web browser. In someembodiments, aspects of the computational application 140 running on theserver 152 (e.g., the kernel) are separate from the cloud-baseddevelopment system 188.

In some embodiments, a user can utilize the computational application140 and/or the cloud-based development front end 144, running on thecomputer 102, to create objects that are to be deployed to the cloud.The cloud-based development front end 144 may then interface with thecloud-based development system 188 to transfer the created objects tothe server 152. The server 152 may then store the objects in the cloudstorage database 180 and make the objects available to one or morecomputers via the network 150, or another network (not shown).

In some embodiments, the server 152 may be communicatively coupled to ananswering system and/or natural language processing system such asdescribed in U.S. Pat. No. 8,589,869 and/or U.S. patent application Ser.No. 13/678,168, filed Nov. 15, 2012, which are hereby incorporated byreference herein in their entireties. In some embodiments, thecloud-based development system 188 may interface with such systems andutilize natural language processing capabilities of such systems toprocess user input, for example.

In some embodiments, the server 152 utilizes virtualization techniques.

In various embodiments, a user can create a document, notebook,spreadsheet, program, etc., that is executed on the computer 102 (oranother computer, now shown) and that is configured to utilize cloudobjects 184. For example, in some embodiments, a notebook, spreadsheet,program, etc., executed on the computer 102 stores data as a cloudobject 184. As another example, in some embodiments, a document,notebook, spreadsheet, program, etc., executed on the computer 102accesses data stored as a cloud object 184. As yet another example, insome embodiments, a notebook, spreadsheet, program, etc., executed onthe computer 102 utilizes a cloud object 184 to perform a functionand/or computation, a result of which is utilized by the notebook,spreadsheet, program, etc., which is executed on the computer 102.

Thus, in various embodiments, the cloud-based development system 188 mayinclude various functional modules such one of or any suitablecombination of two or more of a computational kernel (e.g., aMATHEMATICA® kernel) for performing pre-defined functions and forexecuting computer-readable instructions based on an associated language(e.g., the Wolfram Language™); a data analysis engine configured toclassify data in one or more data sets and/or to perform analysis,sometimes in cooperation with the computational kernel or otherfunctional modules, of data in one or more data sets; a module togenerate code in different programming languages; a module to generateand/or implement APIs; a module to interpret free-form data and/orconvert the free-form data into structured data; a module to classifydata sets; a module to facilitate cloud execution of variouscomputational functions requested from external devices (e.g., othercomputers, servers, and/or embedded devices) by, for example, receivingand answering function calls originating in software executing on thoseexternal devices; a module to generate and/or update reports based onvarious datasets stored in the cloud or passed to the functional modulefrom an external device; etc.

Cloud Computing

In various embodiments, a programming language includes built-infunctions that facilitate one or more of deployment of objects to thecloud, access to objects in the cloud, and/or manipulation of objects inthe cloud. In various embodiments, one or more of the computationalapplication 140, the cloud-based development front end 144, and thecloud-based development system module 188 are configured to evaluatesuch built-in functions to deploy objects to the cloud, access objectsin the cloud, and/or manipulate objects in the cloud.

For example, in an embodiment, a CloudDeploy function enables aprogrammer to deploy an expression to the cloud, where the deployedexpression can be software code that can be executed (e.g., by theserver 152), data that can be accessed and/or manipulated, etc. Forexample, in various embodiments, one or more of the following syntaxesare utilized:

CloudDeploy[expr]

In this example, an expression expr is deployed as a cloud object, andthe server 152 assigns a universal resource identifier (URI) to thecloud object. In some embodiments, the URI may include a universallyunique identifier (UUID), such as the UUID standardized by the OpenSoftware Foundation (OSF) as part of the Distributed ComputingEnvironment (DCE). The URI may be a universal resource locator (URL), insome embodiments. Evaluation of this function returns a handle to thecloud object. The cloud object can then be accessed using the handle.

CloudDeploy[expr, “uri”]

In this example, an expression expr is deployed as a cloud object at agiven URI.

CloudDeploy[expr, CloudObject[“uri”]]

In this example, an expression expr is deployed to a given cloud object.CloudObject is a handle to a cloud object at a specified URI.

FIG. 2A is an example in which a programmer utilizes the CloudDeployfunction to deploy a user-manipulatable 3-dimensional (3D) plot to aserver such as the server 152 (FIG. 1). In the example of FIG. 2A, theexpression to be deployed includes a built-in function of MATHEMATICA®,Manipulate. The Manipulate function can be utilized to generateuser-manipulatable plots, or other suitable displays. Evaluation of theCloudDeploy function in FIG. 2A returns a handled corresponding todeployment of the expression. FIG. 2B illustrates a web page that a usersees when entering a URI, corresponding to the handle, in a web browser.In particular, the web page includes a user-manipulatable 3D plotcorresponding to an evaluation of the Manipulate function in FIG. 2A.

In some embodiments, CloudDeploy can be utilized with one or moresuitable options. For example, in some embodiments, parameters can beutilized with CloudDeploy to specify when the deployed object is to beevaluated. For instance, in some embodiments, one or more parameters canbe specified to indicate one or more of i) that a deployed object is tobe evaluated when the object is accessed on the web, ii) that thedeployed object is to be dynamically auto refreshed on the web, iii)that the deployed object is to be reevaluated on a schedule, etc. Asanother example, one or more parameters can be specified to indicate oneor more of i) the object is to be private to the user (e.g., the objectcan only be accessed by the user), ii) the object is to be public (e.g.,the object is publicly available on the web), iii) the object is to beavailable to specified users, iv) the object is to be available to oneor more classes of users, etc.

In some embodiments, a programming language provides built-in functionsto allow programs to utilize cloud storage for retrieving input to beprocessed, storing variables, storing generated output, etc., forexample. For instance, in an embodiment, a CloudPut function enables aprogrammer to write an expression to the cloud, where the expression canbe software code that can be executed (e.g., by the server 152), datathat can be accessed and/or manipulated, etc. For example, in variousembodiments, one or more of the following syntaxes are utilized:

CloudPut[expr]

In this example, an expression expr is written to a new cloud object,and the server 152 assigns a universal resource identifier (URI) to thecloud object. Evaluation of this function returns a handle to theobject. The cloud object can then be accessed using the handle.

CloudPut[expr, “uri”]

In this example, an expression expr is written to a cloud object at agiven URI.

CloudPut[expr, CloudObject[“uri”]]

In this example, an expression expr is written to a given cloud object.

As another example, in an embodiment, a CloudGet function enables aprogrammer to read an object in the cloud, and evaluate expression(s)included in the object, where a result of a last evaluated expression isreturned. For example, in various embodiments, one or more of thefollowing syntaxes are utilized:

CloudGet[“uri”]

In this example, an object in the cloud at a given URI is read, and eachexpression included in the object is evaluated. A result of a lastevaluated expression is returned.

CloudGet[CloudObject[“uri”]]

In this example, a given cloud object is read.

FIG. 3 is an example in which a programmer utilizes the CloudPutfunction to write an expression (e.g., a factorial) to a server such asthe server 152 (FIG. 1). A URI parameter “myfile” is utilized to specifya cloud object to which the expression is to be written. Evaluation ofthe CloudPut function in FIG. 3 returns a handle to the cloud object towhich the expression was written. A programmer subsequently utilizes theCloudGet function to read from the cloud object specified by the URI“myfile”. In response, an evaluation of the expression 47! is returned.

FIG. 4 is a flow diagram of an example method 400 for deploying objectsto a cloud environment to enable accessing the objects via a network. Insome embodiments, the method 400 may be implemented at one or morecomputers, such as the computer 102 and/or the server 152 of FIG. 1.Merely for explanatory purposes, FIG. 4 is described in the context ofthe method 400 implemented by the computer 102. In other embodiments,however, the method 400 may be implemented jointly at the computer 102and the server 152, at another suitable computer (not shown in FIG. 1),at one or more other computers/servers, etc.

In some embodiments, the method 400 may be implemented as part of asoftware program being executed on a computer, such as the computer 102,the server 152 running a kernel, etc. In some embodiments, the method500 may be implemented by the computational application 140 beingexecuted on the computer 102, a kernel of the computational application140 being executed on the server 152, etc. In some embodiments, themethod 500 may be implemented, at least partially, by the cloud-baseddevelopment front end 144, the cloud-based development system 188, or acombination of the two.

At block 404, programmer input in a programming language is received,the programmer input including i) a function corresponding to makingelectronic objects accessible on a network, and ii) a parameterindicating an electronic object. For example, in an embodiment, aprogrammer enters the programming input via a user interface of orcoupled to the computer 102. In some embodiments, the programmer inputmay be entered into a notebook, workspace, etc., of the computationalapplication 140. In some embodiments, the function may be a built-infunction of the programming language. In an embodiment, the function isthe CloudDeploy function.

In various embodiments, the electronic object indicated by the parametermay include one or more of data, further programming input in theprogramming language or another programming language, data, a file, adocument, an undeployed web page, etc.

In various embodiments, the programmer input includes one or more otherparameter regarding how the object is to be deployed. For example, invarious embodiments, the programmer input may include a furtherparameter indicating how the electronic object is to be evaluated by theserver, a further parameter indicating to the server that the objectinput is to be evaluated by the server each time the electronic objectis accessed, a further parameter indicating to the server that theobject is to be evaluated by the server according to a schedule, afurther parameter indicating to the server that the object is to bedynamically evaluated by the server, etc.

As another example, in various embodiments, the programmer input mayinclude a further parameter indicating permission information for accessto the object after deployment.

As another example, in various embodiments, the programmer input mayinclude a further parameter indicating a location at which the object isto be deployed, such a handle to an already deployed object, a URI, etc.

At block 408, the programmer input is evaluated to cause the electronicobject to be stored on a server and made accessible via a networkcoupled to the server. For example, in an embodiment, the programmerinput is evaluated at the computer 102 by the computational application140. As another example, in an embodiment, block 408 includes,additionally or alternatively, evaluating the programmer input at theserver 152 by a server-side portion (e.g., a kernel, etc.) of thecomputational application 140.

In an embodiment, block 408 includes the computer 102, in response toevaluating the programmer input, sending a message to the server 152 viathe network 150, the message requesting the server 152 to deploy theobject in the cloud storage 180 and to make the object accessible viathe network 150 (or another network coupled to the cloud storage 180).In various embodiments and/or scenarios, the message includes the objector an indicator of where the object may be obtained, such as a pointerto where the object is stored in a memory (e.g., the memory 108, thecloud storage 180, etc.), a URI corresponding to the object, etc.

In some embodiments and/or scenarios, the message may contain one ormore further parameters such as a further parameter indicating how theelectronic object is to be evaluated by the server, a further parameterindicating to the server that the object input is to be evaluated by theserver each time the electronic object is accessed, a further parameterindicating to the server that the object is to be evaluated by theserver according to a schedule, a further parameter indicating to theserver that the object is to be dynamically evaluated by the server,etc. As another example, in some embodiments, the message may contain afurther parameter indicating permission information for access to theobject after deployment.

In an embodiment in which the programmer input is evaluated at theserver 152, block 408 may include the server 152 extracting from theprogrammer input the object or an indicator of where the object may beobtained, such as a pointer to where the object is stored in a memory(e.g., the memory 108, the cloud storage 180, etc.), a URI correspondingto the object, etc. In an embodiment in which the programmer input isevaluated at the server 152, block 408 may include the server 152extracting from the programmer input further parameters such asdescribed above.

In response to evaluating the programmer input and/or receiving themessage discussed above, the server 152 may store the object in thecloud storage 180 and make the object accessible via the network 150 (oranother network), in various embodiments. In an embodiment, the server152 may determine where in the cloud storage 180 the object is to bedeployed. If provided in the message and/or the programmer input, theserver 152 may utilize a parameter included in the programmer input thatindicates a location at which the object is to be deployed, in anembodiment.

If provided in the message and/or the programmer input, the server 152may utilize one or more parameters specifying how the object is to bedeployed such as how often, when, etc., the object is to be evaluatedwhen deployed, permission information for access to the object, etc.,and may the server 152 may deploy the object according to theparameters.

At block 412, in response to evaluating the programmer input, a handleto the deployed electronic object is received, the handle to enableaccessing the electronic object via the network. In various embodiments,the handle may comprise a pointer, a web page address, a HypertextTransfer Protocol (HTTP) address, a URI, a universal resource locator(URL), etc. In an embodiment, the server 152 may send the handle to thecomputer 102 via the network 150. In an embodiment, the server 152 mayinclude the handle in a subsequent message that is responsive to amessage sent from the computer 102 to the server 152 that requested theserver 152 to deploy the object in the cloud storage 180 and to make theobject accessible via the network 150 (or another network).

In some embodiments, block 412 is omitted. For example, in someembodiments, the server may publish the handle, URI, URL, etc., to arepository (e.g., in the cloud storage 180 or another suitable location)where the handle, URI, URL, etc., can be retrieved.

FIG. 5 is a flow diagram of an example method 500 for storing objects toa cloud environment that enables accessing the objects via a network. Insome embodiments, the method 500 may be implemented at one or morecomputers, such as the computer 102 and/or the server 152 of FIG. 1.Merely for explanatory purposes, FIG. 5 is described in the context ofthe method 500 implemented by the computer 102. In other embodiments,however, the method 500 may be implemented jointly at the computer 102and the server 152, at another suitable computer (not shown in FIG. 1),at one or more other computers/servers, etc.

In some embodiments, the method 500 may be implemented as part of asoftware program being executed on a computer, such as the computer 102,the server 152 running a kernel, etc. In some embodiments, the method500 may be implemented by the computational application 140 beingexecuted on the computer 102, a kernel of the computational application140 being executed on the server 152, etc. In some embodiments, themethod 500 may be implemented, at least partially, by the cloud-baseddevelopment front end 144, the cloud-based development system 188, or acombination of the two.

At block 504, programmer input in a programming language is received,the programmer input including i) a function corresponding to storingelectronic objects to network-accessible storage, and ii) a parameterindicating an electronic object. For example, in an embodiment, aprogrammer enters the programming input via a user interface of orcoupled to the computer 102. In some embodiments, the programmer inputmay be entered into a notebook, workspace, etc., of the computationalapplication 140. In some embodiments, the function may be a built-infunction of the programming language. In an embodiment, the function isthe CloudPut function.

In various embodiments, the electronic object indicated by the parametermay include one or more of data, further programming input in theprogramming language or another programming language, data, a file, adocument, an undeployed web page, etc.

In various embodiments, the programmer input includes one or more otherparameters regarding storing of the object in the network-accessiblestorage. For example, in various embodiments, the programmer input mayinclude a further parameter indicating a location at which the object isto be stored, such a handle to an already stored object, a URI, etc.

At block 508, the programmer input is evaluated to cause the electronicobject to be stored in the network-accessible storage. For example, inan embodiment, the programmer input is evaluated at the computer 102 bythe computational application 140. As another example, in an embodiment,block 508 includes, additionally or alternatively, evaluating theprogrammer input at the server 152 by a server-side portion (e.g., akernel, etc.) of the computational application 140.

In an embodiment, block 508 includes the computer 102, in response toevaluating the programmer input, sending a message to the server 152 viathe network 150, the message requesting the server 152 to store theobject in the cloud storage 180. In various embodiments and/orscenarios, the message includes the object or an indicator of where theobject may be obtained, such as a pointer to where the object is storedin a memory (e.g., the memory 108, the cloud storage 180, etc.), a URIcorresponding to the object, etc.

In some embodiments and/or scenarios, the message may contain one ormore further parameters regarding storage of the object in thenetwork-accessible storage, such as a parameter indicating a location atwhich the object is to be stored, such a handle to an already storedobject, a URI, etc.

In an embodiment in which the programmer input is evaluated at theserver 152, block 508 may include the server 152 extracting from theprogrammer input the object or an indicator of where the object may beobtained, such as a pointer to where the object is stored in a memory(e.g., the memory 108, the cloud storage 180, etc.), a URI correspondingto the object, etc. In an embodiment in which the programmer input isevaluated at the server 152, block 508 may include the server 152extracting from the programmer input further parameters such asdescribed above.

In response to evaluating the programmer input and/or receiving themessage discussed above, the server 152 may store the object in thecloud storage 180, in an embodiment. In an embodiment, the server 152may determine where in the cloud storage 180 the object is to be stored.If provided in the message and/or the programmer input, the server 152may utilize a parameter included in the programmer input that indicatesa location at which the object is to be stored, in an embodiment.

At block 512, in response to evaluating the programmer input, a handleto the stored electronic object is received. The handle may enableaccessing the electronic object via the network, in some embodiments. Invarious embodiments, the handle may comprise a pointer, a web pageaddress, a Hypertext Transfer Protocol (HTTP) address, a URI, auniversal resource locator (URL), etc. In an embodiment, the server 152may send the handle to the computer 102 via the network 150. In anembodiment, the server 152 may include the handle in a subsequentmessage that is responsive to a message sent from the computer 102 tothe server 152 that requested the server 152 to deploy the object in thecloud storage 180 and to make the object accessible via the network 150(or another network).

In some embodiments, block 512 is omitted. For example, in someembodiments, the handle, URI, URL, etc., may be published to arepository (e.g., in the cloud storage 180 or another suitable location)where the handle, URI, URL, etc., can be retrieved.

FIG. 6 is a flow diagram of an example method 600 for retrieving objectsfrom a cloud environment that enables accessing the objects via anetwork. In some embodiments, the method 600 may be implemented at oneor more computers, such as the computer 102 and/or the server 152 ofFIG. 1. Merely for explanatory purposes, FIG. 6 is described in thecontext of the method 600 implemented by the computer 102. In otherembodiments, however, the method 600 may be implemented jointly at thecomputer 102 and the server 152, at another suitable computer (not shownin FIG. 1), at one or more other computers/servers, etc.

In some embodiments, the method 600 may be implemented as part of asoftware program being executed on a computer, such as the computer 102,the server 152 running a kernel, etc. In some embodiments, the method600 may be implemented by the computational application 140 beingexecuted on the computer 102, a kernel of the computational application140 being executed on the server 152, etc. In some embodiments, themethod 600 may be implemented, at least partially, by the cloud-baseddevelopment front end 144, the cloud-based development system 188, or acombination of the two.

At block 604, programmer input in a programming language is received,the programmer input including i) a function corresponding to retrievingelectronic objects from network-accessible storage, and ii) a parameterindicating an electronic object. For example, in an embodiment, aprogrammer enters the programming input via a user interface of orcoupled to the computer 102. In some embodiments, the programmer inputmay be entered into a notebook, workspace, etc., of the computationalapplication 140. In some embodiments, the function may be a built-infunction of the programming language. In an embodiment, the function isthe CloudGet function.

In various embodiments, the electronic object indicated by the parametermay include one or more of data, further programming input in theprogramming language or another programming language, data, a file, adocument, a web page, etc.

In various embodiments, the programmer input includes one or more otherparameters regarding retrieval of the object from the network-accessiblestorage. For example, in various embodiments, the programmer input mayinclude a further parameter indicating a location at which the object isstored, such a handle to the object, a URI, etc.

At block 608, the programmer input is evaluated to cause the electronicobject to be retrieved from the network-accessible storage. For example,in an embodiment, the programmer input is evaluated at the computer 102by the computational application 140. As another example, in anembodiment, block 608 includes, additionally or alternatively,evaluating the programmer input at the server 152 by a server-sideportion (e.g., a kernel, etc.) of the computational application 140.

In an embodiment, block 608 includes the computer 102, in response toevaluating the programmer input, sending a message to the server 152 viathe network 150, the message requesting the server 152 to retrieve theobject from the cloud storage 180. In some embodiments and/or scenarios,the message may contain one or more a parameter regarding retrieval ofthe object from the network-accessible storage, such as a parameterindicating a location at which the object is stored, such a handle to analready stored object, a URI, etc.

In an embodiment in which the programmer input is evaluated at theserver 152, block 608 may include the server 152 extracting from theprogrammer input a parameter indicating from where in the storage 180the object may be obtained, such as a pointer to where the object isstored in the cloud storage 180, a URI corresponding to the object, etc.

In response to evaluating the programmer input and/or receiving themessage discussed above, the server 152 may retrieve the object from thecloud storage 180, in an embodiment. In an embodiment, the server 152may determine where in the cloud storage 180 the object is stored. Insome embodiments, the server 152 may also evaluate the object. Forexample, if the object comprises an expression and/or software code inthe language of the computation application 140, the server 152 may(e.g., using a kernel of the computational application 140) evaluate theexpression and/or the software code.

At block 612, in response to evaluating the programmer input, theretrieved object, or an evaluation of the retrieved object, is received,according to various embodiments. In an embodiment, the server 152 maysend the object (or the evaluation of the object) to the computer 102via the network 150. In an embodiment, the server 152 may include theobject (or the evaluation of the object) in one or more subsequentmessages that are responsive to a message sent from the computer 102 tothe server 152 that requested the server 152 to retrieve the object fromthe cloud storage 180.

In some embodiments, messaging such as discussed above with respect toFIGS. 4-6 is not utilized.

In some embodiments, cloud objects may be utilized by the computationalapplication 140 running at the computer 102. In some embodiments, aCloudSave function is provided for saving definitions associated with asymbol to a cloud object. For instance, in an embodiment, the CloudSavefunction enables a programmer to save symbol definitions to the cloud.For example, in various embodiments, one or more of the followingsyntaxes are utilized:

CloudSave[symbol]

In this example, definitions associated with the specified symbol aresaved to a new anonymous cloud object, and the server 152 assigns URI tothe cloud object. Evaluation of this function returns a handle to theobject. The cloud object can then be accessed using the handle.

CloudSave[“form”]

In this example, definitions associated with symbols whose name matchthe string pattern “form” are saved to the cloud.

CloudSave[“context”]

In this example, definitions associated with symbols in the specifiedcontext are saved to the cloud.

CloudSave[{object₁, object₂, . . . }]

In this example, definitions associated with several objects are savedto the cloud.

CloudSave[symspec, “uri”]

In this example, definitions associated with symspec are saved to thecloud object at a given URI.

CloudSave[symspec, CloudObject[“uri”]]

In this example, definitions associated with symspec are saved to aspecified cloud object.

As an illustrative example, a user may enter “f[x_]:=x̂2” in a notebookto define a function f as the square of x. The user may then save thefunction to the cloud, e.g., by entering “obj=CloudSave[f]. If f islater modified in the notebook, the user can restore the function f byentering CloudGet[obj]. Then, if the user were to enter “f[2]”, thecomputational application would return “4”, i.e., the square of two.

In some embodiments, a CloudSymbol object may represent a symbol whosevalue is persistently stored in the cloud. For instance, in anembodiment, the CloudSymbol function enables a programmer topersistently save symbols to the cloud. For example, in variousembodiments, one or more of the following syntaxes are utilized:

CloudSymbol[“name”]

In this example, a named symbol is persistently stored in the cloud.

CloudSymbol[obj]

In this example, a persistent symbol corresponding to the cloud object“obj” is represented.

As an illustrative example, a user may enter “CloudSymbol[“x”]=!10” in anotebook. Upon evaluation, a cloud symbol “x” with a value set to !10 isstored in the cloud storage 180. Later, if the user utilizes the objectCloudSymbol[“x”] in the notebook or another notebook, the computationalapplication 140 will retrieve the value of the object, e.g., !10, or3628800.

In some embodiments, a CloudFunction is provided for having functionsevaluated in the cloud (e.g., by the server 152). For instance, in anembodiment, the CloudFunction enables a programmer to have specifiedfunctions evaluated in the cloud rather than on the computer 102. Forexample, in various embodiments, one or more of the following syntaxesare utilized:

CloudFunction[func]

In this example, a function “func[args]” is evaluated in the cloud.Evaluation of this function returns a result of the evaluation offunc[args].

CloudFunction[CloudObject[ . . . ]]

In this example, a function applies the contents of a specified cloudobject.

As an illustrative example, a user may enter “CloudFunction[#1+#2 &][3,4]” in a notebook. Upon evaluation in the cloud, a result “7” isreturned. As another example, a user may enter“func=CloudPut[FactorInteger[#] &]. Upon evaluation, a cloud object“func” is returned. Then, if the user entered CloudFunction[func][42]”in the notebook, a result {{2, 1}, {3, 1}, {7, 1}} is returned.

In some embodiments, a CloudEvaluate function is provided for havingexpressions evaluated in the cloud (e.g., by the server 152). Forinstance, in an embodiment, the CloudEvaluate function enables aprogrammer to have specified expressions evaluated in the cloud ratherthan on the computer 102. An example syntax may be:

CloudEvaluate[expr]

In this example, a specified expression is evaluated in the cloud.Evaluation of the expression returns a result of the evaluation.

As an illustrative example, a user may enter “CloudEvaluate[$MachineID]”in a notebook run on the computer 102. Upon evaluation in the cloud, aunique identifier of a machine (e.g., server 152) that evaluated theobject “MachineID” is returned, which is not the unique identifier ofthe computer 102.

In some embodiments, web sites and other server-based applicationsand/or systems can manipulate data and/or execute/evaluate functions andmethods stored on the cloud storage 180. For example, software executingon a different server may call functions stored on the cloud storage 180(perhaps specifying parameters associated with the function), the server152 may evaluate the functions, and the server 152 may transmit theresults back to the different server. This may allow the differentserver to offload processing to the cloud platform. Additionally, thedifferent server may use the techniques, systems, and/or examplefunctions discussed above to store to and/or retrieve from the cloudplatform data, variables, objects, etc. as part of the server/websitefunctionality.

As one example of the utility of such an arrangement, a user at adesktop computer may be running software on the desktop computer thatstores resulting data to the cloud (e.g., using the CloudPut function,the CloudSave function, etc.). A function or method executing on thecloud platform may be manipulating or analyzing the saved result data(e.g., classifying it, formatting it, performing additional analysis,etc.). At the same time, a web server may be providing the manipulatedor analyzed data to a user or to a function (e.g., a JAVA function)executing on the web site. The web server may use the CloudGet functionto retrieve the data from the cloud platform, which will be the mostrecent data saved to the cloud platform, according to some embodiments.

Similarly, programs running locally on a desktop computer, mobiledevice, or the like, can call functions stored in/on the cloud platform.The cloud platform can execute the functions and provide results to thecalling program, thereby augmenting the processing power of the desktopcomputer, mobile device, etc. with the superior processing power of thecloud platform (or at least decreasing the processing load on thedesktop computer, mobile device, etc.).

Similarly, data, objects, variables, functions, methods, etc. stored onthe cloud platform can be retrieved and used in local processor tasks ona desktop computer, mobile device, and the like. The results of thelocal processor tasks may be saved locally and/or back to the cloudplatform.

Forms Generation

Referring again to FIG. 1, the system 100 may facilitate efficientgeneration of electronic forms for eliciting user information (andprocessing that information, in some embodiments), and deployment ofsuch forms to the web, according to some embodiments. For example, thecloud-based development system 188 and/or the cloud-based developmentfront end 144 may include a forms generation module that enablesefficient and flexible generation of electronic forms. Embodiments of aforms generation module and techniques for generating forms arediscussed below. In some embodiments, such modules and techniques may beimplemented by the system 100 of FIG. 1. In other embodiments, suchmodules and techniques may be implemented by systems different than thesystem of FIG. 1.

FIG. 7 is a diagram of an example system 700 for creating electronicforms for eliciting user information, according to an embodiment. Asdescribed in more detail below, the system 700 enables efficient andflexible generation of electronic forms, according to some embodiments.

In an embodiment, the system 700 includes a computer similarlystructured to the computer 102 of FIG. 1. For purposes of brevity,like-numbered components are not described in detail.

In an embodiment, the memory 108 may store a forms generation module 750that facilitates generation of electronic forms, as will be described inmore detail below. In an embodiment, the forms generation module 750comprises software instructions that, when executed by the processor104, causes the processor to evaluate programming input from aprogrammer to generate an electronic form object. As an illustrativeexample, the electronic form object is generated i) to include HyperTextMarkup Language (HTML) elements and ii) such that a web browser cangenerate a web page form from the electronic form object, according to aspecific embodiment. In other embodiments, the electronic form object isgenerated to include Extensible Hypertext Markup Language (XHTML)elements, Extensible Markup Language (XML) elements, style sheets (e.g.,Cascading Style Sheets (CSS)), scripts (e.g., JAVASCRIPT®, etc.), andsuch that a suitable application (e.g., a web browser, a web browserwith an appropriate plug in, etc.) can generate a suitable electronicform (e.g., a web page form) from the electronic form object.

As another example, the electronic form object is generated i) toinclude Computable Document Format (CDF) code, and ii) such that a CDFplayer (available from Wolfram Research, Inc.) can generate anelectronic form from the electronic form object, according to anembodiment.

As another example, the electronic form object is generated i) toinclude a spreadsheet application macro, and ii) such that thespreadsheet application can render the electronic form, e.g., usingspreadsheet elements.

In some embodiments, the electronic form object is generated such that acomputational application (e.g., MATHEMATICA® or another suitableapplication) prompts the user to provide input via one or more commandline prompts. In some embodiments, electronic form object is generatedsuch that a suitable application (e.g., having or utilizing voicesynthesizer technology and/or voice recognition technology) prompts theuser with audio prompts to provide voice input. Thus, in someembodiments, the electronic form need not be displayed on a displaydevice and/or need not utilize graphical user interface (GUI) elements.

In some embodiments, generated electronic form objects 754 are stored inthe memory 108.

In some embodiments, the forms generation module 750 is a component of acompiler, i.e., a computer program that transforms source code writtenin a programming language into another computer language, typically tocreate an executable program. In some embodiments, the forms generationmodule 750 is a component of an interpreter, i.e., a computer programthat directly executes, i.e. performs, instructions written in aprogramming or scripting language (referred to herein for brevity as a“programming language”), without first compiling the instructions into amachine language program. Thus, in some embodiments, the programminginput evaluated by the forms generation module 750 includes softwareinstructions written in a programming language.

In some embodiments, the forms generation module 750 is a component of asoftware application such as a computational application. For example,the forms generation module 750 may be a component of the MATHEMATICA®computational software program developed by Wolfram Research, Inc.,according to a specific embodiment.

In an embodiment, the memory 108 may store a web browser 758. In anembodiment, the web browser 758, when executed by the processor 104, cangenerate web page forms from at least some electronic form objects 754,according to an embodiment. For example, in an embodiment, the webbrowser 758 is utilized by a programmer for visualizing, adjusting,modifying, etc., electronic forms generated using the forms generationmodule 750.

FIG. 8 is a diagram of another example system 800 for creatingelectronic forms for eliciting user information, according to anotherembodiment. As described in more detail below, the system 800 enablesefficient and flexible generation of electronic forms, according to someembodiments. In an embodiment, the system 800 is similarly structured tothe system 100 of FIG. 1. For purposes of brevity, like-numberedcomponents are not described in detail.

In an embodiment, the memory 158 may store some of or the entire formsgeneration module 750 discussed above. For example, in an embodiment,the forms generation module 750 is implemented as a client-serversystem, and the memory 158 stores a server portion of the formsgeneration module 750, whereas the memory 108 of the computer 102 storesa client portion of the forms generation module 750. In an embodiment, aprogrammer uses the computer 102 to provide programming input to theserver 152 via the network 150. The server 152 then generates anelectronic form object, and the electronic form object is stored in amemory. For example, in an embodiment, the electronic form object isstored in the memory 158 and/or the cloud storage 180. In someembodiments, the cloud storage 180 is omitted. In another embodiment,the electronic form object is transmitted to the computer 102, via thenetwork 150, and is stored in the memory 108. In another embodiment, theelectronic form object is stored in a memory of another server system(e.g., a web server (not shown)) so that the electronic form object isaccessible via the Internet, for example.

FIG. 9 is a flow diagram of an example method 900 for generating anelectronic form, according to an embodiment. The method 900 may beimplemented by the system 100 of FIG. 1, the computer 102 of FIG. 7,and/or the system 800 of FIG. 8, in some embodiments, and the method 900is discussed with reference to FIGS. 7 and 8 for explanatory purposes.In other embodiments, however, the method 900 is implemented by asuitable computer or a suitable system (e.g., multiple computers) otherthan the system 100, the computer 102 and/or the system 800.

At block 904, programmer input in a programming language is received atone or more computers. For example, programmer input is received, viaone or more input devices 112, at the computer 102. In some embodiments,the computer 102 transmits the programmer input to the server 152 viathe network 150, and thus the programmer input is received at the server152. The programmer input includes i) specification data correspondingto an electronic form to be generated, and ii) a parameter thatindicates a function to be applied to user input.

FIG. 10A illustrates an example of programmer input 1000 such asprogrammer input that can be received at block 904, according to anillustrative embodiment. The programmer input 1000 includes built-infunction 1004 of a programming language, i.e. FormFunction[ ], that aprogrammer may utilize to efficiently create an electronic form. Thebuilt-in function 1004 includes two arguments: specification data 1008and a parameter 1012 that indicates a function to be applied to userinput. Generally, specification data such as the specification data 1008may include data to indicate properties of the form to be generated,according to an embodiment. For example, the specification data 1008includes data to indicate that the form is to elicit two inputs: “first”and “second”. Additionally, the specification data 1008 indicate thatthe “first” input will be of a data type “String”, and the “second” willbe of a data type “Number”.

Referring again to FIG. 9, at block 908, the programmer input isevaluated at one or more computers to generate an electronic form objectthat includes one or more user-interface mechanisms for receiving theuser input. For example, the forms generation module 750 may evaluatethe programmer input, in an embodiment. In some embodiments, theprogrammer input is fully evaluated in response to receiving theprogrammer input. In other embodiments, however, the programmer input isonly partially evaluated, and full evaluation is not completed until alater time, such as upon or just before cloud deployment of theelectronic form object, or upon or just before the function indicated bythe parameter 1012 is to be applied in response to user input.

Block 908 may include evaluating the programmer input to generate codethat is capable of being processed by an application (e.g., a webbrowser or another suitable application) to render the electronic formsuch as on a display device.

Block 908 may include evaluating the specification data to determinegeneral characteristics of the form to be generated, according to anembodiment. For example, in some embodiments, determining generalcharacteristics of the form to be generated may include determining oneor more of i) how many user inputs are to be received by the form, ii)respective data types of the user inputs, etc. Referring to FIG. 10A,for example, the specification data 1008 is evaluated to determine thatthe form is to elicit two elicit two inputs: “first” and “second”.Additionally, evaluation of the specification data 1008 reveals that the“first” input will be of a data type “String”, and the “second” will beof a data type “Number”. Thus, in an illustrative embodiment, the formsgeneration module 750 evaluates the specification data 1008 to determinethat the form requires two inputs: one to elicit user input of data type“String”, and another to elicit user input of data type “Number”. Basedon the evaluation of the specification data, code is generated for anelectronic form that conforms to the general characteristicscorresponding to the specification data 1008. The generated code iscapable of being processed by an application to render the electronicform (having the general characteristics).

Also, block 908 may include evaluating the parameter that indicates thefunction to generate code in the electronic form object, in someembodiments. In the illustrative example of FIG. 10A, the indicatedfunction is merely “f”. In other embodiments and/or scenarios, theindicated function may be a function expressed as or using built-infunctions of the programming language and/or programming statementsexpressed using the programming language. Thus, evaluating the parameter1012 may comprise evaluating one or more built-in functions of theprogramming language and/or one or more programming statements expressedusing the programming language, in some embodiments. Based on theevaluation of the parameter, code is generated for the electronic formto cause the function to be applied to input data when the electronicform is utilized by a user. In some embodiment, the generated code iscapable of being processed by the application that is to render theelectronic form.

In other embodiments, however, the parameter 1012 that indicates thefunction may be evaluated at a later time, such as upon or just beforecloud deployment of the electronic form object, or upon or just beforethe function indicated by the parameter 1012 is to be applied inresponse to user input. Thus, in some embodiments, the generated codecauses evaluation of the function to be completed at “run-time”, e.g.,after user input is received.

In some embodiments, block 908 includes generating the electronic formobject to include one or more of HTML elements, XHTML elements, XMLelements, style sheets (e.g., CSS), scripts (e.g., JAVASCRIPT®, etc.),CDF code, a spreadsheet macro, etc. In some embodiments, block 908includes generating the electronic form object such that the electronicform object can be rendered by a web browser, a web browser with asuitable plugin, a CDF player, a spreadsheet application, an applicationthat utilizes command line prompts, an application that utilizes audioprompt technology (e.g., voice synthesizer technology) and/or voicerecognition technology, etc. Thus, in some embodiments, the electronicform need not be generated so that it can be rendered on a displaydevice and/or such that it utilizes GUI elements. For example, theelectronic form may be generated to utilize command line prompts,receive input via a command line, utilize audio prompts, receive audioinput (e.g., voice input), etc.

In some embodiments, the computer 102 implements block 908. In someembodiments, the server system 202 implements block 908. In someembodiments, the computer 102 and the server system 202 togetherimplement block 908.

At block 912, the electronic form object generated at block 908 isstored in a memory. For example, in an embodiment, the electronic formobject is stored in the memory 108. In another embodiment, theelectronic form object is stored in the memory 208. In anotherembodiment, the electronic form object is stored in some other suitablememory such as a memory of a web server (not shown in FIGS. 7 and 8).

As discussed above, a suitable application may render an electronic formusing the electronic form object. FIG. 10B is an illustration of anexample graphical electronic form 1050 that may be rendered based on anelectronic form object generated in response to the programming input ofFIG. 10A, according to an embodiment. The electronic form 1050 includesa first GUI mechanism 1054 and a second GUI mechanism 1058 correspondingto the “first” input and the “second” input, respectively, discussedabove with respect to FIG. 10A. The first GUI mechanism 1054 is a firsttext box and the second GUI mechanism is a second text box. In anembodiment, the forms generation module 750 generates the electronicform object such that the electronic form 1050 includes text boxes inresponse to the specification data 1008 indicating that the first inputis of data type string and the second input is of data type numberbecause text boxes are appropriate GUI mechanisms for eliciting stringand number data types, in an embodiment.

The electronic form 1050 includes a first label 1062 for the first textbox 1054, and includes a second label 1066 for the second text box 1058.The forms generation module 750 generates the electronic form objectsuch that the electronic form 1050 includes the first label 1062 and thesecond label 1066 in response to the specification data 1008, in anembodiment.

The electronic form 1050 includes a submit button 1070. The formsgeneration module 750 generates the electronic form object such that theelectronic form 1050 includes the submit button 1070 because utilizing asubmit button is appropriate when utilizing text boxes, in anembodiment. The electronic form 1050 also includes a cancel button 1074.The forms generation module 750 generates the electronic form objectsuch that the electronic form 1050 includes the cancel button 1074 as adefault, according to an embodiment.

When the user enters a string in the text box 1054, enters a number inthe text box 484, and then selects the submit button 1070, theelectronic form object is configured to apply the function “f” 1012 tothe string in the text box 1054 and the number in the text box 484 togenerate a result. As discussed above, in some embodiments, the function“f” 1012 is evaluated when the user selects the submit button 1070.

In an embodiment, the forms generation module 750 automaticallygenerates the electronic form object to take a certain action(s) whenone or more user inputs do not match data types specified by thespecification data 1008. For example, in an embodiment, the formsgeneration module 750 generates the electronic form object such that theuser is prompted when one or more user inputs do not match data typesspecified by the specification data 1008. As an illustrative example, inan embodiment, if the user enters input other than a string in the textbox 1054 and then selects the submit button 1070, the electronic formobject may indicate to the user that the “first” input must be a string.Similarly, in an embodiment, if the user enters input other than anumber in the text box 1058 and then selects the submit button 1070, theelectronic form object may indicate to the user that the “second” inputmust be a number. Similarly, in an embodiment, if the user leaves one ormore of the text box 1054 or the text box 1058 empty when selecting thesubmit button 1070, the electronic form object may indicate to the userthat an input must be provided. For example, the electronic form objectmay display to the user a suitable message such as “This field isrequired.” In some embodiments, specification data can be utilize toindicate that certain inputs are required, certain inputs are optional,certain inputs may have default values, etc.

In an embodiment, the programming language is designed so that theprogrammer can utilize the specification data, optionally, to specifyvarious desired characteristics of the electronic form such asappearance characteristics, audio characteristics, timingcharacteristics, etc. In some embodiments, the forms generation module750 utilizes default parameters when the specification data does notspecify corresponding characteristics. For example, the programmer canutilize the specification data to specify a window size of a GUI form,but if the programmer does not specify a window size, the formsgeneration module 750 utilizes default parameters regarding the windowsize. As another example, the programmer can utilize the specificationdata to specify a color and/or design theme for a GUI form, but if theprogrammer does not specify a theme from a plurality of predeterminedthemes, the forms generation module 750 utilizes default parametersregarding the theme. As yet another example involving a form that usesaudio prompts, the programmer can utilize the specification data tospecify audio characteristics of the form (e.g., male or female voicefor prompts, speaking speed of voice, volume, etc.), but if theprogrammer does not specify such audio characteristics, the formsgeneration module 750 utilizes default parameters regarding the audiocharacteristics.

In an embodiment, the programming language is designed so that theprogrammer can utilize the specification data, optionally, to specifyvarious desired characteristics relating to output of results, but theforms generation module 750 utilizes default parameters when thespecification data does not specify corresponding characteristics. Forexample, with GUI forms, the programmer can utilize the specificationdata to specify where, in relation to the GUI form, the result is to bedisplayed (e.g., below, above, to the right, to the left, etc.), but ifthe programmer does not specify such characteristics, the formsgeneration module 750 utilizes default parameters regarding placement ofthe result relative to the GUI form. As another example, when the resultis to be output using audio, the programmer can utilize thespecification data to specify audio characteristics corresponding tooutput of the result (e.g., male or female voice speaking speed ofvoice, volume, etc.), but if the programmer does not specify suchcharacteristics, the forms generation module 750 utilizes defaultparameters regarding such audio characteristics.

In an embodiment, the programming language is designed so that theprogrammer can utilize the specification data, optionally, to specify atype of electronic form object to be generated, but the forms generationmodule 750 utilizes default parameters when the specification data doesnot specify corresponding characteristics. For example, the programmercan utilize the specification data to specify between a plurality ofdifferent types of objects such as two or more of web page code (e.g.,HTML, XHTML, etc.), XML, a script (e.g., JAVASCRIPT®, etc.), CDF code, aspreadsheet macro, etc., but if the programmer does not specify suchcharacteristics, the forms generation module 750 utilizes defaultparameters regarding the type of electronic object to be generated.

Referring again to FIGS. 10A and 10B, the forms generation module 750,as a default, generates the electronic form object such that the form1050 displays labels 1062 and 1066 as the keys “first” and “second”. Insome embodiments, the programmer can utilize the specification data tooverride this default and specify different labels to be included in theform. For example, FIGS. 11A and 11B illustrate the example programminginput of FIG. 10A and the graphical electronic form of FIG. 10B,respectively, except that the specification data 1008 is altered tospecify labels to be used in the form 1150. For example, the programinginput 1100 includes {“first”, “String”} to indicate that the text box1054 (associated with the “first” input) should have a label “String”1154, and also includes {“second”, “Number”} to indicate that the textbox 1058 (associated with the “second” input) should have a label“Number” 1158.

In an embodiment, the programming language is designed to allow aprogrammer to specify labels as graphical objects. FIGS. 12A and 12Billustrate the example programming input of FIG. 11A and the graphicalelectronic form of FIG. 11B, respectively, except that the specificationdata 1008 is altered to specify labels to be used in the form 1250. Forexample, the programing input 1200 includes data related to the stringinput that indicates that the text box 1054 should have a graphicalobject 1204 as a label. Thus, the form 1250 is generated to display thecorresponding label 1254. In the embodiment corresponding to FIGS. 12Aand 12B, the programming input 1200 includes the graphical object 1204.In other embodiments, however, the programming input 1200 includes anindicator of or pointer to the graphical object 1204, such as a filename of the graphical object 1204.

In an embodiment, the programming language is designed to allow aprogrammer to add text and/or graphics to forms. FIGS. 13A and 13Billustrate the example programming input of FIG. 12A and the graphicalelectronic form of FIG. 12B, respectively, except that the specificationdata 1008 is altered to specify text and graphics to be included in aform 1350. For example, the programing input 1300 includes text 1304 andgraphics 1308. Thus, the form 1350 is generated to display correspondingtext 1354 and graphics 1358. In the embodiment corresponding to FIGS.13A and 13B, the programming input 1300 includes the graphical object1308. In other embodiments, however, the programming input 1300 includesan indicator of or pointer to the graphical object 1308, such as a filename of the graphical object 1308.

As discussed above, in some embodiments the form generation module 750is configured to automatically generate forms with user interfacemechanisms appropriate for the type of input specified. FIG. 14Aillustrates an example programming input 1400 in which a programmer hasspecified an input of type “Color”. In response, the form generationmodule 750 generates an electronic form object that includes a GUIappropriate for selecting a color. For example, FIG. 14B illustrates anexample form 1450 corresponding to an electronic form object generatedby the form generation module 750. The form 1450 includes a GUI 854 forselecting a color.

FIG. 15A illustrates an example programming input 1500 in which aprogrammer has specified an input of type “image”. In response, the formgeneration module 750 generates an electronic form object that includesa GUI appropriate for selecting an image file. For example, FIG. 15Billustrates an example form 1550 corresponding to an electronic formobject generated by the form generation module 750. The form 1550includes a GUI 1554 for selecting an image file.

FIG. 16A illustrates an example programming input 1600 in which aprogrammer has specified an input of type “Boolean”. In response, theform generation module 750 generates an electronic form object thatincludes a GUI appropriate for selecting a Boolean value. For example,FIG. 16B illustrates an example form 1650 corresponding to an electronicform object generated by the form generation module 750. The form 1650includes checkboxes 1654 for selecting either a Boolean value 0 or aBoolean value 1.

FIG. 17A illustrates an example programming input 1700 in which aprogrammer has specified an input corresponding to selection of anelement from a list. For example, the programing input 1700 includesspecification data 1708 having code 1712 indicating a user inputcorresponding to selection from a list, e.g., from a list consisting ofFlyers, Business cards, and Leaflets. In response, the form generationmodule 750 generates an electronic form object that includes a GUIappropriate for selecting from an element in a list. For example, FIG.16B illustrates an example form 1750 corresponding to an electronic formobject generated by the form generation module 750. The form 1750includes a pull down menu 1754 for selecting an item from a list, e.g.,the list consisting of Flyers, Business cards, and Leaflets.

Additionally, the specification data 1708 includes code 1716 indicatingan override of the default label for the “Submit” button, e.g., “Buynow!” In response, the form generation module 750 generates theelectronic form object such that a label 1758 for the resulting form1750 has the label “Buy now!”

FIG. 18A illustrates an example programming input 1800 in which aprogrammer has specified a theme of “Red”. In response, the formgeneration module 750 generates an electronic form object correspondingto an electronic form having a visual theme corresponding to “Red”.Similarly, FIG. 18B illustrates an example programming input 1820 inwhich a programmer has specified a theme of “White”. In response, theform generation module 750 generates an electronic form objectcorresponding to an electronic form having a visual theme correspondingto “White”. FIG. 18C illustrates an example programming input 1850 inwhich a programmer has specified a theme of “Blue”. In response, theform generation module 750 generates an electronic form objectcorresponding to an electronic form having a visual theme correspondingto “Blue”.

FIG. 19A is an example of programming input 1900, and FIG. 19B is anillustration of an example graphical electronic form 1950 that may berendered based on an electronic form object generated in response to theprogramming input 1900 of FIG. 19A, according to an embodiment. Theprogramming input 1900 includes specification data 1908 having data 1912that indicates a first function to be applied to user input received viathe form. In particular, the first function 1912 specifies that a“SemanticURL” type interpreter should be with user input received viathe form. In an embodiment, the interpreter “SemanticURL” receives textcorresponding to a semantic name of a website (e.g., Wolfram Research)and returns a particular uniform resource locator (URL) corresponding tothe semantic name (e.g., http://www.wolfram.com).

The programming input 1900 also includes data 1916 indicating a secondfunction to be applied to user input received via the form. Inparticular, the programming input 1900 specifies that the function“Composition[HTTPRedirect, First]” should be applied to the result ofthe first function 1912, i.e., SemanticURL. In an embodiment, thebuilt-in function “HTTPRedirect” navigates to a web page at URL passedto the function. Thus, the programming input 1900 specifies that thebuilt-in function SemanticURL should be applied to user input togenerate a URL, and the built-in function HTTPRedirect should then beused to navigate to the URL.

In response to the programming input 1900, the forms generation module750 generates an electronic form object configured to generate the form1950 of FIG. 19B. The electronic form 1950 includes a GUI mechanism 1954corresponding to the “Website” input of the programming input 1900. TheGUI mechanism 1954 is a text box. In an embodiment, the forms generationmodule 750 generates the electronic form object such that the electronicform 1950 includes the text box in response to the specification data1908. In particular, the forms generation module 750 assumes that theinput will be text based on the first function 1912, which the formsgeneration module 750 knows receives input of type text, according to anembodiment. The electronic form 1950 includes a label 1958 for the textbox 1954, and includes a second label 1066 for the second text box 1058.

The electronic form 1950 includes a submit button 1962. The formsgeneration module 750 generates the electronic form object such that theelectronic form 1950 includes the submit button 1962 because utilizing asubmit button is appropriate when utilizing text boxes, in anembodiment.

When the user enters a string in the text box 1954, and then selects thesubmit button 1962, the electronic form object is configured to applythe first function 1912 to the string in the text box 1954 to generate aURL. Additionally, the second function 1916 is applied to the generatedURL causing the browser to refresh the web page.

Additionally, the specification data 1908 includes data 1920 relating toappearance of the electronic form to be generated. For example, the data1920 indicates a “title” to be included in the form, a “description” tobe included in the form, and a label to be used for the submit button1962. Thus, the forms generation module 750 generates the electronicform object such that the electronic form 1950 includes a title 1966, adescription 1970, and the submit button 1962 has the appropriate label.

In some embodiments, techniques and systems such as described above withrespect to FIGS. 9-20C may be utilized with techniques and systems thatfacilitate efficient deployment of electronic forms to the Internet, anintranet, an extranet, etc. For example, techniques and systems such asdescribed above may be utilized with cloud deployment techniques andsystems described above with respect to FIGS. 1-8.

Referring again to FIG. 19A, the programming input 1900 may be evaluatedcompletely (e.g., the function 1912 and the function 1916 may beevaluated at the same time as other parts of the programming input 1900)and based on the evaluation of the function 1912 and the function 1916,code is generated for the electronic form to cause the function 1912 andthe function 1916 to be applied to input data when the electronic form1950 is utilized by a user. In other embodiments, however, the function1912 and/or the function 1916 may be evaluated at one or more subsequenttimes, such as upon or just before the function 1912 and/or the function1916 are to be applied in response to user input (e.g., the function1912 and/or the function 1916 may be evaluated in response to the userselecting the submit button 1962). Thus, in some embodiments, thegenerated code causes evaluation of the function to be completed at“run-time”, e.g., after user input is received.

For example, in an embodiment, the server system 202 (FIG. 8) mayevaluate the function 1912 and the function 1916 in response to the userselecting the submit button 1962. As another example, in an embodiment,a second server (not shown in FIG. 8) may evaluate the function 1912 andthe function 1916 in response to the user selecting the submit button1962. As yet another example, in an embodiment, the second server (notshown) may send the function 1912 and/or the function 1916 and userinput received via the electronic form 1950 to the server system 202 (ora third server (not shown)), and the server system 202 (or the thirdserver (not shown)) applies the function 1912 and the function 1916 tothe user input. In this embodiment, the server system 202 (or the thirdserver (not shown)) returns the result to the second server (not shown)for displaying in an output generated by the electronic form object. Insome embodiments, the second server (and/or the third server) has astructure similar to the server system 202, e.g., with a processor, amemory, a NIC, etc.

FIG. 20A is an example of programming input 2000, and FIG. 20B is anillustration of an example graphical electronic form 2050 that may berendered based on an electronic form object generated in response to theprogramming input 2000 of FIG. 19A, according to an embodiment.

The programming input 2000 includes a FormFunction 2004 within aCloudDeploy function 2008. As discussed above, the FormFunction 2004causes the forms generation module 750 to generate an electronic formobject, according to an embodiment. Additionally, the CloudDeployfunction 2008 causes the cloud deployment module 2004 to deploy theelectronic form object so that it is accessible via the Internet, forexample.

The programming input 2000 includes specification data 2012 and afunction 2016. The specification data 2012 indicates that user input(e.g., “from” and “to”) should be interpreted as airports (e.g., ORD isinterpreted as O'Hare International Airport, Chicago, Ill.; Boston isinterpreted as Boston Logan International Airport, etc.).

The function 2016 comprises several built-in functions such asGeoGraphics, GeoPath, and GeoPosition. The function 2016 indicates thata graphic should be generated that shows, on a map, a path from thelocation “from” to the location “to”.

Referring now to FIG. 20B, the form 2050 corresponds to a web pagegenerated by the forms generation module 750 and deployed by the clouddeployment module 1404 in response to the programming input 2000. Theweb page 2050 includes text boxes 2054 and 2058 to receive the userinput (e.g., “from” and “to”). The forms generation module 750 assumesthat text boxes are appropriate because the specification data 2012indicates that user input (e.g., “from” and “to”) should be interpretedas airports. The web page 2050 also includes a submit button 2062.

The cloud deployment module 1404 caused the electronic form object to bedeployed such that the electronic form object is accessible at a URL2070.

FIG. 20C is an illustration of an example output 2075 generated by theelectronic form object in response to a user entering “jfk” in the textbox 2054, entering “cdg” in the text box 2058, and selecting the submitbutton 2062. In particular, the output 2075 is generated to include agraphic showing a map and showing a path from John F. KennedyInternational Airport in New York, N.Y. to Charles de Gaulle Airport inParis, France.

Referring again to FIG. 20A, the programming input 2000 may be evaluatedcompletely (e.g., the function 2016 may be evaluated at the same time asother parts of the programming input 2000) and based on the evaluationof the function 2016, code is generated for the electronic form to causethe function 2016 to be applied to input data when the electronic form2050 is utilized by a user. In other embodiments, however, the function2016 may be evaluated at a later time, such as upon or just before clouddeployment of the electronic form object, or upon or just before thefunction 2016 is to be applied in response to user input (e.g., thefunction 2016 may be evaluated in response to the user selecting thesubmit button 2062). Thus, in some embodiments, the generated codecauses evaluation of the function to be completed at “run-time”, e.g.,after user input is received.

For example, in an embodiment, the web server (not shown) may evaluatethe function 2016 in response to the user selecting the submit button2062. As another example, in an embodiment, the web server (not shown)may send the function 2016 and user input received via the electronicform 2050 to the server system 202 (or another server system (notshown)), and the server system 202 (or the other server system (notshown)) applies the function 2016 to the user input. In this embodiment,the server system 202 (or the other server system (not shown)) returnsthe result to the web server (not shown) for displaying in the output2075 (FIG. 20C). In some embodiments, the web server (and/or the othersever) has a structure similar to the server system 202, e.g., with aprocessor, a memory, a NIC, etc.

In some embodiments, specification data in the programming input mayspecify that user input received via the electronic form is to beprocessed using natural language processing (NLP) techniques, and thefunction specified in the programming input is to be applied to a resultof the NLP processing of the user input. In some embodiments, theprogramming input may also specify an entity type to which the userinput is to correspond to assist with NLP processing. For example, inthe example of FIGS. 15A-C, the programming input 2000 specifies thatthe user input corresponds to an entity type “Airport”, thus NLPprocessing of the user input is focused on determining airport typeentity corresponding to the user input. For example, a user may enterinput in one of a variety of formats (e.g., a three-letter airport code(e.g., ORD), a city (e.g., Chicago), a city and state/province (e.g.,Chicago, Ill.), a city and country (e.g., Chicago, USA), an airport name(e.g., O'Hare), etc.) and the NLP processing may process the input in anattempt to determine a corresponding entity. In some embodiments, theuser input may be sent to a separate server system configured to performNLP processing (e.g., using techniques such as described above), and theseparate server system may return results of the NLP processing.

Instant API

Referring again to FIG. 1, the system 100 may facilitate efficientgeneration of application programming interfaces (APIs), and deploymentof APIs to the web, according to some embodiments. For example, thecloud-based development system 188 and/or the cloud-based developmentfront end 144 may include an API generation module that enablesefficient and flexible generation of APIs. Embodiments of an APIgeneration module and techniques for generating forms are discussedbelow. In some embodiments, such modules and techniques may beimplemented by the system 100 of FIG. 1. In other embodiments, suchmodules and techniques may be implemented by systems different than thesystem of FIG. 1.

For example, FIG. 21 is a diagram of an example system 2100 for creatingAPIs, according to an embodiment. As described in more detail below, thesystem 2100 enables efficient and flexible generation of APIs, accordingto some embodiments.

In an embodiment, the system 2100 includes a computer similarlystructured to the computer 102 of FIG. 1. For purposes of brevity,like-numbered components are not described in detail.

In an embodiment, the memory 108 may store an API generation module 2150that facilitates generation of APIs, as will be described in more detailbelow. In an embodiment, the API generation module 2150 comprisessoftware instructions that, when executed by the processor 104, causesthe processor to evaluate programming input from a programmer togenerate an API such that the API subsequently can be utilized toperform a processing action. For example, as will be described in moredetail below, the generated API can be utilized by a software programrunning on the computer 102, the computational application 140 runningon the computer 102 (not shown in FIG. 21), etc., according to variousembodiments. As another example, as will be described in more detailbelow, the generated API can be deployed to cloud storage and madenetwork accessible (e.g., using CloudDeploy or another suitablemechanism), and a software program running on the computer 102 oranother suitable computer, the computational application 140 running onthe computer 102 (not shown in FIG. 21) or another suitable computer, acloud-based program running on one or more servers, etc., may utilizethe API via a network, according to various embodiments.

In some embodiments, generated APIs 2154 are stored in the memory 108.

In some embodiments, the API generation module 2150 is a component ofthe cloud-based front end 144. In some embodiments, the API generationmodule 2150 is a component of a compiler, i.e., a computer program thattransforms source code written in a programming language into anothercomputer language, typically to create an executable program. In someembodiments, the API generation module 2150 is a component of aninterpreter, i.e., a computer program that directly executes, i.e.performs, instructions written in a programming or scripting language(referred to herein for brevity as a “programming language”), withoutfirst compiling the instructions into a machine language program. Thus,in some embodiments, the programming input evaluated by the APIgeneration module 2150 includes software instructions written in aprogramming language.

In some embodiments, the API generation module 2150 is a component of asoftware application such as a computational application 140 (FIG. 1).For example, the API generation module 2150 may be a component of theMATHEMATICA® computational software program developed by WolframResearch, Inc., according to a specific embodiment.

FIG. 22 is a diagram of another example system 2200 for generating APIs,according to another embodiment. As described in more detail below, thesystem 2200 enables efficient and flexible generation of APIs, accordingto some embodiments. In an embodiment, the system 2200 is similarlystructured to the system 100 of FIG. 1. For purposes of brevity,like-numbered components are not described in detail.

In an embodiment, the memory 158 may store some of or the entire APIgeneration module 2150 discussed above. For example, in an embodiment,the API generation module 2150 is implemented as a client-server system,and the memory 158 stores a server portion of the API generation module2150, whereas the memory 108 of the computer 102 stores a client portionof the API generation module 2150. In an embodiment, a programmer usesthe computer 102 to provide programming input to the server 152 via thenetwork 150. The server 152 then generates an API, and the API is storedin a memory. For example, in an embodiment, the API is stored in thememory 158 and/or the cloud storage 180. In some embodiments, the cloudstorage 180 is omitted. In another embodiment, the API is transmitted tothe computer 102, via the network 150, and is stored in the memory 108.In another embodiment, the API is stored in a memory of another serversystem (e.g., a web server (not shown)) so that the API is accessiblevia the Internet, for example.

FIG. 23 is a flow diagram of an example method 2300 for generating anAPI, according to an embodiment. The method 2300 may be implemented bythe computer 102 of FIG. 21 and/or the system 2200 of FIG. 22, in someembodiments, and the method 2300 is discussed with reference to FIGS. 21and 22 for explanatory purposes. In other embodiments, however, themethod 2300 is implemented by a suitable computer or a suitable system(e.g., multiple computers) other than the computer 102 and/or the system2300 (e.g., by the system 100 of FIG. 1 or another suitable system).

At block 2304, programmer input in a programming language is received atone or more computers. For example, programmer input is received, viaone or more input devices 112, at the computer 102. In some embodiments,the computer 102 transmits the programmer input to the server 152 viathe network 150, and thus the programmer input is received at the server152. The programmer input includes i) first specification datacorresponding to input parameters for an API to be generated, and ii)second specification data that indicates a function to performed.

FIG. 24A illustrates an example of programmer input 2400 such asprogrammer input that can be received at block 2304, according to anillustrative embodiment. The programmer input 2400 includes built-infunction 2404 of a programming language, i.e. APIFunction[ ], that aprogrammer may utilize to efficiently create an API. The built-infunction 2404 includes two arguments: first specification data 2408 andsecond specification data 2412, where the first specification data 2408specifies an input parameter to an API to be generated, and the secondspecification data that specifies a function to be applied to inputparameter. In some embodiments, the first specification data also mayspecify, for each of at least some input parameters, a type of theparameter. For instance, in the example of FIG. 24A, the specificationdata 2408 specifies that the input parameter “x” is an “integer” type.In the illustrative embodiment of FIG. 24A, the programmer input 2400may be entered into a file, a notebook, a web page, etc. In otherembodiments other suitable programmer input is received in anothersuitable manner, such as via a spreadsheet, etc.

In the example of FIG. 24A, the second specification data 2412 specifiesthat a built-in function Factorinteger is to be applied on the input“x”. The function Factorinteger is a built-in function, in anembodiment.

Referring again to FIG. 23, at block 2308, the programmer input isevaluated at one or more computers to generate an API that can be passedone or more parameters and that performs the specified function. Forexample, the API generation module 2150 may evaluate the programmerinput, in an embodiment, to generate the API. In some embodiments, theprogrammer input is fully evaluated in response to receiving theprogrammer input. In other embodiments, the programmer is only partiallyevaluated. For example, in some embodiments, the second specificationdata 2412 may not be fully evaluated. For instance, if the specificationdata 2412 includes software code specifying a function to be performed,the software code may not be evaluated until the API is subsequentlyinvoked or utilized, according to some embodiments. The API generationmodule 2150 may utilize the first specification data 2408 and the secondspecification data 2412 (and some or all (or none) of other arguments(s)and/or parameters, if provided in the programmer input) to generate theAPI. The API may include an electronic object having softwareinstructions, where the electronic object is configured such thatparameter(s) (specified by the first specification data) can be passedto the electronic object and the electronic object can be invoked toperform the specified function (specified by the second specificationdata) using the specified parameter(s), in some embodiments. In anembodiment, the API includes software instructions that can be executedby one or more computers to cause the one or more computers to performthe specified function using the specified parameter(s).

In some embodiments, the computer 102 implements block 2308. In someembodiments, the server 152 implements block 2308. In some embodiments,the computer 102 and the server system 202 together implement block2308.

At block 2312, the API generated at block 2308 is stored in a memory.For example, in an embodiment, the API is stored in the memory 108. Inanother embodiment, the API is stored in the memory 158. In anotherembodiment, the API is stored in the cloud storage 180. In anotherembodiment, the electronic form object is stored in some other suitablememory such as a memory of a web server (not shown in FIGS. 21 and 22).

Referring again to FIG. 24A, the programmer input 2400 includes a name2420 for the API. The name 2420 (“func”) can be utilized to access theAPI, in an embodiment. For example, FIG. 24B illustrates an example ofprogrammer input 2450 that is used to access the API and provide aparameter to the API, according to an illustrative embodiment. Theprogrammer input 2450 includes the name of the API (“func”) and alsodata that indicates the parameter “x” is set to the integer fifteen. Inresponse, the API is evaluated and returns a result 2466. In theillustrative embodiment of FIG. 24B, the programmer input 2450 may beentered into a file, a notebook, a web page, etc. In other embodimentsother suitable programmer input is received in another suitable manner,such as via a spreadsheet, etc. In an embodiment, the result 2466 may bereturned in the same file, notebook, spreadsheet, web page, etc., inwhich the programmer input 2450 was entered. In other embodiments, theresult 2466 may be returned in a file, notebook, spreadsheet, web page,etc., separate from the file, notebook, spreadsheet, web page, etc., inwhich the programmer input 2450 was entered.

In some embodiments in which the API generation module 2100 is acomponent of a computational application such as the computationalapplication 140, the API may be created by the computational application140 and then used by the computational application 140. In someembodiments, the API may be created by the API generation module 2100and/or the API generation module 2150 then made available for use by oneor more of another application (e.g., different than the computationalapplication 140), another program, and/or a different computer from thecomputer(s) on which the API was generated.

For example, in some embodiments, the generated API may be madeaccessible via network-accessible storage, such as the cloud storage180. For example, the generated API may be made accessible via a URL, aURI, etc., or some other suitable mechanism. In some embodiments, theCloudDeploy function may be utilized to deploy an API tonetwork-accessible storage such as the cloud storage 180.

FIG. 25A is an illustrative example in which a programmer utilizes theCloudDeploy function and the APIFunction to generate an API and deploythe generated API to network-accessible storage, such as the cloudstorage 180. In the example of FIG. 25A, the API to be deployed utilizesa built-in function of MATHEMATICA®, GeoGraphics. The GeoGraphicsfunction generates a 2-dimensional (2D) geographic image.

Programmer input 2500 includes the APIFunction 2504, first specificationdata 2508, and second specification data 2512, where the firstspecification data 2508 specifies an input parameter to an API to begenerated and a type of the parameter, and the second specification data2512 that specifies a function to be applied to input parameter. Forinstance, the specification data 2508 specifies an input parameter“name” of a type “Country”, and the second specification data 2512specifies that the GeoGraphics function is to be applied to the“country” input parameter to draw a polygon of the country indicated bythe input parameter, and to generate a result in a Portable NetworkGraphics (PNG) format.

Additionally, the programmer input 2500 includes the CloudDeployfunction 2540. Evaluation of the CloudDeploy function in FIG. 25Areturns a handle corresponding to deployment of the expression. Thehandle includes a URL that enables access to the API. FIG. 25Billustrates a web page that a user sees when entering, in a web browser,a URL corresponding to the handle, and appending a parameter input tothe URL (e.g., “?name=Italy”). In particular, the web page includes 2Dgeographic polygon drawing of Italy. In an embodiment, a server, such asthe server 152, receives the URL with the appended parameter informationfrom a requesting computer, uses the URL to locate the API in the cloudstorage 180, evaluates the API using the appended parameter informationto generate a result, and the returns to the requesting computer theresult in a web page.

Thus, in various embodiments, the cloud-based development system 188 maybe configured to perform one or more of, or various suitablecombinations of two or more of: create an API, deploy the API, giveand/or associate the API a name, associate the API with one or moremethods, actions, and/or functions to be performed, and associate theAPI with one or more various parameters, store the API in the cloudstorage 180, create a mapping paradigm to map portions of a URL or URIto the methods, actions, and/or functions and/or to the parameter(s) ofthe methods, actions, and/or functions, such that the methods, actions,and/or functions can be called from a browser, by a website, by a mobileapplication, by a form, etc., merely by sending a URL complying with theAPI. In embodiments, the cloud-based development system 188 may generatedocumentation for the API, describing the implementation of the API, themapping of the methods, actions, and/or functions to the URL, the formatof the data returned by the API, etc.

In some embodiments, the cloud-based development system 188 provides anoption to allow a user to interact with the cloud-based developmentsystem 188 to edit or revise the mapping, the API name, and otheraspects of the API creation. For example, in embodiments, the instantAPI module may suggest additional functions or methods to add to theAPI. The instant API module may also facilitate the use of data,variables, and/or parameters stored in the cloud (i.e., on the cloudservers), or data stored at a location specified by a URL. For example,the cloud-based development system 188 may provide various userinterface mechanisms to permit a user to facilitate editing/revisionssuch as described above.

In some embodiments, the APIs can be configured to accept naturallanguage (i.e., free-form) inputs. As an illustrative example, an APImay be configured to accept a date input specified as “first Mondaybefore Christmas.” The API and/or the cloud-based development system 188may include a module configured to convert such natural-language inputto a canonical form.

In an embodiment, the programming language utilized by the computationalapplication 140 (e.g., the Wolfram Language™ utilized by MATHEMATICA®)and associated with the cloud-based development system 188 permitsrepresentation of at least some objects (e.g., APIs) symbolically in thecloud.

In some embodiments, the computational application 140, the cloud-basedfront end 144, and/or the cloud-based development system 188 utilizes acomputable document format (CDF) that allows exchange of components withinteractive features between desktop and mobile platforms and thecloud-based development system 188 (for example). An author can generatea CDF document on desktop software (e.g., MATHEMATICA®), and deploy itto the cloud storage 180 using native function calls. From the cloudplatform it can be served according to access control information to webvisitors (e.g., publically, privately, or only to those who have a linkto the document). The author can then access the deployed CDF (e.g., viathe cloud-based development system 188) to make modifications. A revisedversion is then made available to all platforms automatically.

Connected Devices

Referring again to FIG. 1, the system 100 may facilitate efficientinteraction with devices that have sensors and/or actuators to enableinteraction with or sensing characteristics of the real world (referredto herein as “connected devices” for brevity), according to someembodiments. For example, the cloud-based development system 188, thecloud-based development front end 144, and/or the computationalapplication 140 may include a connected devices module 2604 (orclient/server, front end/back end, etc., portions thereof) that enablesefficient and flexible interactions with connected devices. Embodimentsof a connected devices module 2604 and techniques for interacting withconnected devices are discussed below. In some embodiments, such modulesand techniques may be implemented by the system 2600 of FIG. 26. Inother embodiments, such modules and techniques may be implemented bysuitable systems different than the system of FIG. 26. For example, insome embodiments, the server 152 may be omitted.

In an embodiment, the system 2600 is similarly structured to the system100 of FIG. 1. For purposes of brevity, like-numbered components are notdescribed in detail.

The system 2600 includes a connected device 2620, which may include, orbe communicatively coupled to, one or more of i) one or more sensors,ii) one or more actuators, etc. For example, the computing device 504may include a testing device, a sensor device, a device such as theRaspberry Pi device developed by the Raspberry Pi Foundation, a devicesuch as the Arduino single board microcontroller device, a healthmonitoring device, a wearable fitness device, etc.

The connected device 2620 may include one or more processors (e.g., amicroprocessor, a microcontroller, etc.) and one or more memory devicescoupled to the one or more processors. Machine readable instructions maybe stored in the one or more memory devices (hereinafter referred to as“the memory” for brevity), and when the one or more processors(hereinafter referred to as “the processor” for brevity) execute themachine readable instructions, the processor may perform various actsspecified by the machine readable instructions.

The connected device 2620 may include one or more communicationinterfaces for communicating with one or more of the computer 102, thenetwork 150, a sensor, an actuator, a hardware module, other hardwareand/or programmable devices, etc. For example, the connected device 2620may include one or more of a USB interface, a serial bus interface, aparallel bus interface, a port interface, a Bluetooth interface, apersonal area network (PAN) interface, a FireWire interface, a PCIExpress interface, an infrared interface, a fiber optic interface, alocal area network (LAN) interface, a wireless local area network (WLAN)interface, a cellular communication network interface device, a widearea network (WAN) interface, etc.

In some embodiments, the connected device 2620 may be communicativelycoupled to the computer 102.

In some embodiments, the connected device 2620 may be communicativelycoupled to a server 102 via the computer 102 and the communicationnetwork 150. In some embodiments, the connected device 2620 may becommunicatively coupled to the server 512 via the communication network150 and not via the computer 102.

In some embodiments, the connected device 2620 may be configured toexecute functional modules including one or more of i) an operatingsystem; ii) a computational application kernel or engine (e.g., aMATHEMATICA® kernel or engine) for performing pre-defined functions andfor executing computer-readable instructions based on an associatedlanguage (e.g., the Wolfram Language™); iii) a command line interfacemodule for acting as a front end to the kernel/engine; iv) a notebookuser interface front end to the kernel/engine; v) one or more dataanalysis engines configured to a) classify data in one or more data setsand/or to perform analysis, sometimes in cooperation with thecomputational kernel or other functional modules, of data in one or moredata sets; b) generate and/or implement APIs; c) interpret free-formdata and/or convert the free-form data into structured data; d) classifydata sets; e) facilitate cloud execution of various computationalfunctions requested from external devices (e.g., other computers,servers, and/or embedded devices) by, for example, receiving andanswering function calls originating in software executing on thoseexternal devices; f) generate and/or update reports based on variousdatasets stored in the cloud or passed to the functional module from anexternal device; etc.

In some embodiments, modules executed on the connected device 2620permit using a high-level programming language to quickly and easilycause the connected device 2620 to interact with the real world (e.g.,gather data from sensors, control an actuator, move a robot arm, etc.)without a user needing to have in-depth knowledge and understanding ofthe underlying hardware.

In some embodiments, a user may interact with (e.g., configure, program,get sensor data from, control an actuator, etc.) the connected device2620 via a user interface module executed by the connected device 2620.In some embodiments, the connected device 2620 may include, or becoupled to, user interface devices such as a keyboard, a keypad, a touchscreen, a button, a mouse, a display device, etc., and the user mayinteract with the connected device 2620 via such user interface devices.In some embodiments, the user may interact with the connected device2620 via user interface devices of or coupled to the computer 102, wheredata is exchanged between such user interface devices and the connecteddevice 2620 via a communication link between the connected device 2620and the computer 102.

In other embodiments, the connected device 2620 may act more as a “dumb”terminal, where user interface functions are executed on another devicesuch as the computer 102. Additionally, in some embodiments, theconnected device 2620 may omit a man-machine interface.

For example, in some embodiments, the computer 102 may be configured toexecute functional modules including one or more of i) an operatingsystem; ii) a computational kernel or engine (e.g., a MATHEMATICA®kernel or engine) for performing pre-defined functions and for executingcomputer-readable instructions based on an associated language (e.g.,the Wolfram Language™); iii) a command line interface module for actingas a front end to the kernel/engine; iv) a notebook user interface frontend to the kernel/engine; v) one or more data analysis enginesconfigured to a) classify data in one or more data sets and/or toperform analysis, sometimes in cooperation with the computational kernelor other functional modules, of data in one or more data sets; b)generate and/or implement APIs; c) interpret free-form data and/orconvert the free-form data into structured data; d) classify data sets;e) facilitate cloud execution of various computational functionsrequested from external devices (e.g., other computers, servers, and/orembedded devices) by, for example, receiving and answering functioncalls originating in software executing on those external devices; f)generate and/or update reports based on various datasets stored in thecloud or passed to the functional module from an external device; g)convert software code between different programming languages (e.g.,between C++ and the Wolfram Language™, between JAVA and the WolframLanguage™, between C++ and JAVA, etc.); etc.

In some embodiments, the connected devices module 2604 executing on thecomputer 102 permits using a high-level programming language to quicklyand easily interact with the connected device 2620 without a userneeding to have in-depth knowledge and understanding of the underlyinghardware of the connected device 2620.

In some embodiments, a user may interact with (e.g., configure, program,get sensor data from, etc.) the connected device 2620 via a userinterface module executed by the computer 102 (e.g., a component of theconnected devices module 2504). In some embodiments, the computer 102may include, or be coupled to, user interface devices such as akeyboard, a keypad, a touch screen, a button, a mouse, a display device,etc., and the user may interact with the connected device 2620 via suchuser interface devices. For example, a user may develop code, using thecomputer 102, for interacting with the connected device 2620, and thencause the code to be deployed to the connected device 2620 via acommunication link (e.g., USB, Bluetooth, WLAN, etc.) between thecomputer 102 and the connected device 2620. As another example, a usermay develop code, using the computer 102, for interacting with theconnected device 2620, and then cause the code to be deployed to theconnected device 2620 via the server 152. Such deployed code may then beexecuted by the connected device 2620.

In other embodiments, a user may develop code, using the computer 102,for interacting with the connected device 2620, and then cause the codeto be deployed to the cloud storage 180. The deployed code may then beexecuted by the server 152, causing the server 152 to interact with theconnected device 2620 (e.g., extract data from the connected device2620, configure/program the connected device 2620 to perform aparticular task, etc.). The server 102 may communicate with theconnected device 2620 via the network 150, in some embodiments. In someembodiments, the computer 102 may act as a conduit for communicationsbetween the server 152 and the connected device 2620. In otherembodiments, the server 152 and the connected device 2620 maycommunicate without going through the computer 102 (e.g., if theconnected device 2620 is capable of establishing a communication linkwith another device such as a router, an access point, another computer,etc.).

In some embodiments, a module executed by the connected device 2620 maycause the connected device 2620, when the connected device 2620 iscommunicatively connected to the network 150 (e.g., directly or via oneor more other devices such as a gateway device, a router, a switch, anaccess point, the computer 102, etc.), to inform the server 152 of itspresence. This may facilitate one or more other computers (e.g., thecomputer 102 or another computer) that are communicatively connected tothe server 152 discovering the presence of the connected device 2620,and then interacting with the connected device 2620 (e.g., via theserver 152 or without the sever 152 acting as an intermediary).Additionally or alternatively, in some embodiments, a module executed bythe connected device 2620 may cause the connected device 2620, when theconnected device 2620 is communicatively connected to the computer 102(e.g., directly (e.g., via USB, Bluetooth, peer-to-peer connection,etc.) or via one or more other devices such as a gateway device, arouter, a switch, an access point, etc.), to inform the computer 102 ofits presence. This may facilitate the computer 102 discovering thepresence of the connected device 2620, and then interacting with theconnected device 2620 (e.g., via the server 152 or without the server152 acting as an intermediary). In some embodiments, the user computer102 may report the presence of the connected device 2620 to the server152.

As an illustrative example, when a new Raspberry Pi device (or othersuitable connected device 2620) is connected to a USB port of thecomputer 102, which is connected to the server 152 via browser session,for example, the server 152 may detect the presence of the Raspberry Pidevice and generate a dialog window in the browser window such as: “youjust connected a new Raspberry Pi device toxyxy.ngb.chic.1.2.3.4-JohnSmith-Desktop—link to your Cloud Platformaccount? <OK/CANCEL>”. If “OK” is selected, the cloud server system 512may prompt to name the device, e.g.,: “What would you like to name yournew device?” A suitable name such as RasPi1 may be selected by the user.

Devices connected to the computer 102, and sensors connected to thosedevices, may be represented in a window using a tree data structure, forexample, which is updated in real-time as devices arehot-plugged/unplugged, and device sensors go into different states. Asimilar tree data structure may also be made available via the server152, in some embodiments.

  YOUR DEVICES ============ - RasPi1 +[ shutdown/reboot/ping/...] ----USB ---- GPIO [ - - - - - ] ---- Ethernet [ ip = 1.2.3.4/255 ] - !RasPi2[ disconnected ] - WeatherStation ---- USB1 ---- USB2 ---- Temperature[25 celsius] ---- Humidity [ 43% ]

FIG. 27 is an illustration of an example GUI 2700 implemented on thecomputer 102 or some other suitable computer, according to anembodiment. The GUI 2700 may facilitate interaction with the connecteddevice 2620. The GUI 2700 may be implemented by the connected devicesmodule 2604, according to an embodiment. For instance, in an embodiment,connected devices module 2604 may permit a user to interact with theconnected device 2620 using a notebook of the communication application140. In some embodiments, the connected devices module 2604 provides afront end for a computational application kernel running on theconnected device 2620. In such embodiments, a user can utilize a highlevel programming language to control and/or retrieve data from theconnected device 2620 without needing knowledge of low-level and/orhardware level details regarding the connected device 2620.

Similarly, in some embodiments, the connected devices module 2604 actsas an intermediary between i) the computational application 140 runningon the computer 102 or a computational application kernel running on theserver 152, and ii) the connected device 2620. In such embodiments, auser can utilize a high level programming language to control and/orretrieve data from the connected device 2620 without needing knowledgeof low-level and/or hardware level details regarding the connecteddevice 2620.

In an embodiment, the connected devices module 2604 maintainsassociation data regarding connected devices (e.g., the connected device2620) associated with the computer 102 and/or a user. The connecteddevices module 2604 may utilize the association data to identifyconnected devices (e.g., the connected device 2620) associated with thecomputer 102 and/or the user, such that when the user is using thecomputer 102 or another computer (e.g., using the computationalapplication 140 on the computer 102 and/or the server 152), the user canbe provided with options for establishing connections with one or moreconnected devices (e.g., the connected device 2620) and/or interactingwith the one or more connected devices. In an embodiment, theassociation data may comprise globally unique identifiers (e.g., UIDs,media access control (MAC) addresses, etc.) of connected devices,computers, etc., and/or user identifiers (IDs).

In some embodiments, a module executed on the connected device 2620 maymap i) programmer input in a high level language (e.g., the WolframLanguage™), computational application built-in functions, etc., and/orcorresponding message data to ii) low-level and/or machine levelinstructions and/or configuration information. In some embodiments, thecomputer 102 and/or the server 152 includes a driver module configuredto facilitate communications between i) the computer 102 and/or theserver 152 and ii) the connected device 2620. In some embodiments, thedriver module may permit transfer of high level languageinstructions/functions, (e.g., the Wolfram Language™), computationalapplication built-in functions, etc., to the connected device 2620. Insome embodiments, the driver module may permit transfer of data,objects, messages, etc., formatted i) according to a high level language(e.g., the Wolfram Language™) and/or ii) for processing by thecomputational application 140, etc., from the connected device 2620.

In some embodiments, a module executed on the computer 102 and/or theserver 152 may map i) programmer input in a high level language (e.g.,the Wolfram Language™) computational application built-in functions,etc., and/or corresponding message data to ii) low-level and/or machinelevel instructions and/or configuration information to permitinteraction with the connected device 2620 via the driver module, forexample.

In some embodiments, the connected devices module 2604 is configured tointerface with a plurality of types of connected devices 2620. In someembodiments, the connected devices module 2604 includes data forperforming mappings between high level programmer/user input andlow-level/machine level instructions/configuration information for theplurality of different types of connected devices 2620. For example, insome embodiments, the connected devices module 2604 may include or haveaccess to mapping information to enable mapping between high levelprogrammer/user input and low-level/machine levelinstructions/configuration information for the plurality of differenttypes of connected devices 2620.

In some embodiments, the connected devices module 2604 is configured toperform initial communications with a connected device 2620 to determinethe type of the connected device 2620. Based on the determined type ofthe connected device 2620, the connected devices module 2604 may beconfigured to determine a particular mapping appropriate for theconnected device 2620, the mapping to be used for converting high levelprogrammer/user input to low-level/machine levelinstructions/configuration information appropriate for the particularconnected device 2620.

Referring again to FIG. 27, a button 2704, when activated, may cause thecomputer 102 (or the server 152, in an embodiment) to establish aconnection with the connected device 2620 (e.g., a Raspberry Pi device),according to an embodiment. In various embodiments, establishing aconnection may include utilizing a device driver determined to beappropriate for the connected device 2620, and/or utilizing appropriatemapping information to convert high level programmer/user input tolow-level/machine level instructions/configuration informationappropriate for the particular connected device 2620.

A button 2708, when activated, may open a new notebook associated withthe connected device 2620, according to an embodiment. For example, insome embodiments, a user can interact with the connected device 2620using a high-level software language such as the Wolfram Language™ and anotebook of a computational application such as MATHEMATICA®. As anillustrative embodiment, a user can send configuration data and/orcontrol data to the connected device 2620 with programming input (in ahigh-level software language such as the Wolfram Language™) entered intothe notebook. As another illustrative embodiment, a user can retrievedata (such as one or more of sensor data, operational data,configuration data, etc.) from the connected device 2620 withprogramming input (in a high-level software language such as the WolframLanguage™) entered into the notebook. In other embodiments, a user caninteract with the connected device 2620 using a high-level softwarelanguage and/or functions provided by other types of computationalapplications such as a spreadsheet application and a notebook,workspace, spreadsheet of the computational application (e.g., aspreadsheet document of the spreadsheet application). In someembodiments, appropriate mapping information is utilized to convert highlevel programmer/user input to low-level/machine levelinstructions/configuration information appropriate for the connecteddevice 2620.

Data from the connected device 2620 can be made network accessible usingtechniques such as described above. For example, a programmer canutilize high-level programmer input, functions, instructions, etc., suchas CloudDeploy, CloudPut, etc. and/or other suitable programmer input,functions, instructions, etc., in various embodiments.

The connected devices module 2604 executing on one or more of theconnected device 2620, the computer 102, another computer, the server152, etc., may provide a set of device interaction functions,instructions, etc., for interacting with the connected device 2620. Insome embodiments, the set of device interaction functions, instructions,etc., may permit configuring and/or interacting with connected devices2620 using a high-level programming language, high-level commands,functions, etc., without a user needing to have in-depth knowledge andunderstanding of the underlying hardware.

An example set of device interaction functions is provided below. Theexample set of device interaction functions is merely one example,according to an embodiment, and other suitable sets of functions may beutilized. For example, other suitable set of device interactionfunctions may include additional functions, may omit one or more of thefollowing functions, may include modified versions of one or morefunctions, may combine two or more of the following functions into asingle function, may implement one of the following functions asmultiple separate functions, may use different function names, may havefewer, more, and/or different parameters, etc.

Some functions may be useful for setting up and/or configuring hardwaredevices included in or communicatively connected to the connected device2620, establishing connections with hardware devices included in orcommunicatively connected to the connected device 2620, etc.

A DeviceOpen function may be utilized to open a connection to theconnected device 2620. The DeviceOpen function returns a DeviceObjectexpression and/or object that represents the connected device 2620,e.g., a handle to the connected device 2620. The DeviceObject may beutilized to refer to the connected device 2620 using the high-levellanguage, functions, instructions, etc., of the computationalapplication 140. The DeviceOpen function may take one or more arguments,in various embodiments. For example, in an embodiment, a “devclass”argument may be utilized to specify a class of devices. In anembodiment, DeviceOpen[“devclass”] may open a connection to a firstavailable connected device of the specified class. As another example,in an embodiment, a “spec” argument may be utilized to specify aparticular device within a specified class. In an embodiment,DeviceOpen[“devclass”, spec] may open a connection to a connected devicedefined by spec. As another example, in an embodiment, a “device”argument may be utilized to specify a device corresponding to aDeviceObject expression/object.

Some example usages of DeviceOpen are provided below:

DeviceOpen[“GPIO”]\[LongRightArrow]DeviceObject[{“deviceclass”,“deviceid”}]

DeviceOpen[“Arduino”, “/dev/tty5”]

DeviceOpen[“Arduino”, XXXX]

DeviceOpen[“Serial”, {XXXXX, BitRate->XXXX}]

DeviceOpen[“Camera”, {RasterSize->XXXX}, XXXXX]

A DeviceConfigure function may be utilized to configure a connecteddevice. For example, in an embodiment, DeviceConfigure may include twoarguments: e.g., DeviceConfigure[device, config], which causesconfiguration of the specified device (e.g., “device” argument maycorrespond to a DeviceObject expression/object) according toconfiguration information specified by the config parameter.

A DeviceClose function may be utilized to close a connection to aconnected device and release resources associated with the connecteddevice. In an embodiment, the DeviceClose function may include anargument that indicates the connected device: e.g., DeviceClose[device].

A FindDevices function may be utilized to find available connecteddevices. For example, in an embodiment, the FindDevices function mayreturn a DeviceObject expression for each discovered device.

A DeviceInformation function may be utilized to retrieve informationabout a connected device. In an embodiment, the DeviceInformationfunction may include an argument that indicates the connected device:e.g., DeviceInformation[device].

A CameraOpen function may be utilized to open a connection to a cameradevice.

A DeviceRead function may be utilized to read data from the connecteddevice 2620. The DeviceRead function returns an object corresponding todata read from the connected device 2620. The returned object may be ina format that is computable by, and can be processed by, the high-levellanguage, functions, instructions, etc., of the computationalapplication 140. The DeviceRead function may take one or more arguments,in various embodiments. For example, in an embodiment, a “device”argument may be utilized to specify a device corresponding to aDeviceObject expression/object. As another example, a “devclass”argument may be utilized to specify a class of devices, and data may beread from a default device in the specified class. In an embodiment, oneor more device parameters to be read from the device may be specified.

FIG. 28 is an illustration of an example notebook 2800. In the exampleof FIG. 28, a parameter “Humidity” is read from a weather stationdevice. An object (“21.4%”) is returned. In an embodiment, the returnedobject may be in a format that is computable by, and can be processedby, the high-level language, functions, instructions, etc., of thecomputational application 140. In an embodiment, the returned object maybe processed by the computational application 140 within the notebook2800. For example, in an embodiment, a subsequent function entered by auser in the notebook 2800 can utilize the returned object may beprocessed by the computational application 140 within the notebook 2800.As another example, in an embodiment, an expression such asx=DeviceRead[dev, “Humidity”] could be entered in the notebook 2800, andafter evaluation by the computational application 140, the object xwould be equal to “21.4%”. Then, the object x could be utilized as aparameter, input, etc., of a subsequent function, expression, etc., andthe subsequent function/expression could be evaluated by thecomputational application 140.

A DeviceReadList function may be utilized to repeatedly read items ofdata from a connected device a specified number of times. TheDeviceReadList function returns an object corresponding to data readfrom the connected device 2620. The returned object may be in a formatthat is computable by, and can be processed by, the high-level language,functions, instructions, etc., of the computational application 140. TheDeviceReadList function may take one or more arguments, in variousembodiments. For example, in an embodiment, a “device” argument may beutilized to specify a device corresponding to a DeviceObjectexpression/object. As another example, a “devclass” argument may beutilized to specify a class of devices, and data may be read from adefault device in the specified class. In an embodiment, one or moredevice parameters to be read from the device may be specified.

A DeviceReadTimeSeries function may be utilized to read items of datafrom a connected device at specified times or intervals and conduct timeseries object, e.g., an object including time-value pairs. TheDeviceReadTimeSeries function returns an object corresponding to dataread from the connected device 2620. The returned object may be in aformat that is computable by, and can be processed by, the high-levellanguage, functions, instructions, etc., of the computationalapplication 140. The DeviceReadTimeSeries function may take one or morearguments, in various embodiments. For example, in an embodiment, a“device” argument may be utilized to specify a device corresponding to aDeviceObject expression/object. As another example, a “devclass”argument may be utilized to specify a class of devices, and data may beread from a default device in the specified class. In an embodiment, oneor more device parameters to be read from the device may be specified.

A DeviceReadLatest function may be utilized to read a most recentlycollected item from a connected device. The DeviceReadLatest functionmay take one or more arguments, in various embodiments. For example, inan embodiment, a “device” argument may be utilized to specify a devicecorresponding to a DeviceObject expression/object. As another example, anumber of most recently collected items to be read from the device maybe specified. In an embodiment, one or more device parameters to be readfrom the device may be specified.

A DeviceReadBuffer function may be utilized to read the entire contentsof a buffer on the device. The DeviceReadBuffer function may take one ormore arguments, in various embodiments. For example, in an embodiment, a“device” argument may be utilized to specify a device corresponding to aDeviceObject expression/object. As another example, a number of items tobe read from the buffer may be specified. In an embodiment, one or moredevice parameters to be read from the device may be specified. In anembodiment, a criterion parameter to indicate that data is to be readfrom the buffer until the criterion is met.

A DeviceWrite function may be utilized to write a value or a list ofvalues to a device. The DeviceWrite function may take one or morearguments, in various embodiments. For example, in an embodiment, a“device” argument may be utilized to specify a device corresponding to aDeviceObject expression/object. As another example, one or more deviceparameters to which one or more values are to be written may bespecified.

A DeviceExecute function can be utilized to cause the connected device2620 to execute a specified command. The DeviceExecute function may takeone or more arguments, in various embodiments. For example, in anembodiment, a “device” argument may be utilized to specify a devicecorresponding to a DeviceObject expression/object. As another example, a“command” that is to be executed may be specified, in an embodiment. Asanother example, one or more parameters for the command may bespecified, in an embodiment.

FIG. 29 is an illustration of an example notebook 2900, according to anembodiment. In the example of FIG. 29, the DeviceExecute function isutilized to cause a weather station device to execute a“ClearLCDDisplay” command to cause the device to clear an LCD screen onthe device. FIG. 30 is an illustration of an example notebook 3000,according to an embodiment. In the example of FIG. 30, the DeviceExecutefunction is utilized to cause check if a response on the device isavailable and to flush buffered data on the device.

A DeviceExecuteAsynchronous function may be utilized to initiateasynchronous execution of a specified command on the device. In anembodiment, the DeviceExecuteAsynchronous includes one or more of thefollowing parameters: “device”, “command”, and “fun”, where “device”argument may be utilized to specify a device corresponding to aDeviceObject expression/object, “command” indicates the command that isto be executed, and “fun” indicates a handler function fun to be calledwhen an event occurs. FIG. 31 is an illustration of an example notebook3100, according to an embodiment. In the example of FIG. 31, theDeviceExecuteAsynchronous function is utilized to read from ademonstration device that retrieves cookies from a specified URL,calling a MATHEMATICA function URLFetchAsynchronous in the background.

A DeviceStream function returns a stream or list of streams associatedwith a device.

An IMAQ{grave over ( )}StartCamera function may start an NI-IMAQ cameradevice taking pictures.

In one illustrative example, the connected device 2620 includes or iscommunicatively coupled to a weather-related hardware device (e.g., aRaspberry Pi Weather Module) that includes a temperature sensor, ahumidity sensor, and a pressure sensor. A user may retrieve data fromthe hardware device such as using the following sequence of high-levelprogramming inputs:

In[1]:=obj=DeviceOpen[“RaspberryPiWeatherStation”]

Out[1]=DeviceObject[{RaspberryPiWeatherStation, 1}]

In[2]:=DeviceRead[obj, “Temperature”]

Out[2]=25 degrees Celsius

In[3]:=DeviceRead[obj, “Humidity”]

Out[3]=30 percent

In[4]:=DeviceRead[obj, “Pressure”]

Out[4]=993 hectopascals

where In[ ]:=is a prompt after which follows a user input, and Out[]=indicates a returned output responsive to the corresponding input.

In another illustrative example, the connected device 2620 includes oris communicatively coupled to a positioning system device (e.g., a GPSModule). A user may retrieve data from the positioning system devicesuch as using the following sequence of high-level programming inputs:

serial=DeviceOpen[“Serial”, {“/dev/ttyusb0”, “BaudRate”->9600}]

This returns a DeviceObject from which positioning data (e.g., GPS data)can be read. For example, DeviceReadBuffer can be used to read all datathat has been buffered thus far.

data=DeviceReadBuffer[serial, “String”]

In one embodiment, the data may be returned in a comma separated formatcalled GPS NMEA sentences. This data can be imported using ImportString.

csv=ImportString[data, “CSV”]

The NMEA sentences that contain GPS coordinates start with the string“$GPRMC”, so the returned data can be filtered:

gps=Cases[csv, {“$GPRMC”, _}]

In NMEA sentences, the coordinates (latitude and longitude) are in the4th and 6th position of each list:

Part[gps, 1, {4,6}]/100

which may return, in an example, a set of coordinates such as:

{40.0583, 88.1474}.

As discussed above, the user computer 102 can interact with theconnected device 2620 via a direct connection, and/or the user computer102 or another computer can interact with the connected device 2620 viathe server 152, in various embodiments. In some embodiments, a functionsuch as the CloudAttach function can be utilized to interact with thecomputing device 504.

In some embodiments, the cloud-based development system 188 executed onthe server 152 and i) the connected devices module 2604 executed on thecomputer 102 and/or ii) a module executed on the connected device 2620may assist making data collected from and/or generated by the connecteddevice 2620 available via the cloud storage 180. Additionally, a wizardmodule executed on the server 152 and/or the computer 102 may assist theuser in making data available via the cloud storage 180. For example,the user may be prompted to identify a source of the data (e.g., a file,a sensor connection, an external source, etc.). The user may specify howraw data is to be processed (e.g., unit conversion, statisticalanalysis, etc.). A template may be generated that indicates how a reportis to be generated using the raw data (e.g., how the raw data is to beprocessed, formatting of the report, etc.) In some embodiments, thetemplate may include high-level software that specifies how raw data isto be processed, for example, and such software is evaluated when aninstance of a report is generated. In some embodiments, the template oranother intermediary document may be organized in sections or cells, anda user can specify whether to exclude certain cells from a report,whether to included certain cells in the report, etc. Similarly, in someembodiments, a user may be able to suppress certain cells that generatecertain messages, and/or suppress a report altogether based on cellcontent (e.g., invalid data). A user may be permitted to select anoutput format for a report: e.g., HTML, XML, CDF, downloadable, PDF,etc. A user may be able to configure notifications regarding reports,such as a list of recipients to be notified when reports are generated,whether a generated report passes or fails, etc.

Additionally, scheduling of report instance generation may be specified.For example, a report instance may be generated periodically, atspecified times, in response to events, etc. For example, a reportinstance may be generated upon a user request via the server 152, areport instance may be generated periodically, a report instance may begenerated when new raw data is available, etc. Then, the reports and/orreport instances may be deployed to the cloud storage 180 and thus madeavailable via a URL, for example.

A user can utilize a function such as CloudPut[ReportGenerate[ ]]. Auser can send report instances as an email attachment or can send a linkto a report instance or report.

Code Generation/Conversion

In various embodiments, systems such as described above also includefunctionality that allows for the generation of programming instructionsin languages other than a native language (“external languages”). Forexample, the cloud platform may operate according to a primary language(e.g., Wolfram Language), but may be capable of generating programminginstructions for other, external languages (e.g., HTML, Javascript,Python, C++, Xcode, etc.).

A Function Call Interface creates a bi-directional mapping of typesbetween the primary language and the external language. First a mappingis created between the primary language types and the types of theexternal language. Second, a parser is implemented to serialize theexternal language types into the primary language.

The interface between the primary language and the external languagefacilitates the use of the cloud platform from within other programminglanguages. Specifically, the interface facilitates the automaticgeneration of code in an external language, which code can access thecloud platform via an API (e.g., via an API generated by theCloudDeploy[ ] function or the Instant API module).

An ExternalFunction[ ] function may operate to take an input and performsome action or computation in a specified external programming language.For example, “ExternalFunction[“Python”, {x}, x!] [10]” may cause thecomputation of 10 factorial (10!) using a Python function.

An EmbedCode[ ] function may generate code in a specified externalprogramming language. For example, “EmbedCode[obj, “Python”]” may causean output of code that can be used in a Python script to execute thefunction or object stored as “obj”. The output may be in the form of afile, in the form of text for cutting and pasting into theexternal-language code, or both. In embodiments, the function or objectcalled in the external language is set up as an API accessingfunctionality of the cloud platform.

obj=CloudDeploy[ExternalFunction[“Python”, {x}, x!], Permissions □“Public”]

EmbedCode[obj, “Python”]

The example code above may define an object “obj” as the output of theCloudDeploy function. The output of the CloudDeploy function would be aURL (e.g., “https://www.cloudplatform.com/objects/abcde12345”) that,when accessed, executed the external Python function factorial x. TheEmbedCode function would output code that could be included in a Pythonscript, which code would access the URL and execute (in the cloud) theexternal Python function factorial x. That is, the Python script wouldbe using computing power of the cloud platform to perform the script.The generated code, in this case, might look like:

import name defendant f(x): returnname.call(“https://www.cloudplatform.com/objects/abcde12345”, x=x)

The utility of this construct is more readily apparent if we change theexample slightly. Consider the following:

obj=CloudDeploy[ExternalFunction[“Python”, {x}, x!], Permissions □“Public”]

EmbedCode[obj, “ObjectiveC”]

In this example, the object is defined the same way, but the EmbedCodefunction generates Objective C code for calling accessing the URL toexecute (in the cloud) the external Python function factorial x. Simplyput, we have just allowed an Objective C program to perform a functionthat is implemented in Python, effectively performing a conversionbetween the two languages.

Still further, the process described above need not include two externallanguages. The object (obj) could be defined in the primary language(instead of using the ExternalFunction expression), implemented as anAPI (e.g., using Instant API or CloudDeploy[ ]), and called from anexternal language program (e.g., Objective C or Python) by generatingcode in the external language using the EmbedCode[ ] function.

The ability to embed functionality of one language (either the primarylanguage or an external language) in code of an (different) externallanguage is advantageous in a number of different circumstances. Forinstance, an algorithm that cannot be run on a particular processor oron hardware that is lacking in some way, can be implemented on the cloudplatform, deployed as an API, and accessed by software running on theparticular processor hardware.

Similarly, functional limitations of a language can be overcome.Objective C is viewed by some as lacking sufficient visualizationfunctionality. Using the system described herein, the visualizations canbe handled by the cloud platform by, for example, creating a function toperform the visualization processing on the cloud platform, implementingan API to allow the function to be called, generating code in ObjectiveC to use the API to call the function on the cloud platform (including,possibly, passing data—e.g., by way of the API—from the Objective Cprogram to the function executing on the cloud platform), performing thevisualization processing on the cloud platform, and returning thevisualized results to the Objective C program.

In various embodiments, one or more of the following syntaxes areutilized:

EmbedCode[obj]

In this example, code for embedding the object obj on a web page isgenerated.

EmbedCode[obj. “dest”]

In this example, code for an external environment or language of type“dest” is generated.

In EmbedCode[obj], the object obj can be a CloudObject, according to anembodiment.

EmbedCode[obj] returns a string that can be inserted into the HTML of aweb page to embed obj on the page, according to an embodiment.

In EmbedCode[obj, “dest”], the object obj can be a function with headAPIFunction or FormFunction, according to an embodiment.

Destinations relevant to the web may include:

“WebPage” URL for complete web page “IFrame” embed code for anembeddable iframe “HTML” standalone HTML code to be embedded on a page{“dest”,framework} use the specified framework for the code generatedPossible frameworks for interactive web content may include:“CloudCDF” CloudCDF with interactivity purely powered by the cloud“CloudCDFAllowingPlugin” CloudCDF with autodetection of local CDF plugin“CDFPlugin” cloud-hosted CDF for CDF plugin Destinations relevant tolanguages may include: “Java”, “Python”, “JavaScript”, “C#”, etc.

In typical cases of external programming languages, EmbedCode returns anEmbeddingObject containing an Association giving a variety of elementsnecessary for the embedding.

Typical options for EmbedCode may include:

ExternalOptions <||> options specific to each environment or languageExternalFunctionName Automatic name to use for generated externalExternalTypeSignature Automatic rules specifying mappings to externalImageSize Automatic size of embedded object in pixels Method Automaticembedding method to use Permissions Automatic permissions to set for thecloud object

With the default setting Permissions->Automatic, EmbedCode[obj] willpreserve the permissions for a cloud object obj and will use permissionsgiven by $Permissions if a new cloud object is created, according to anembodiment.

With an explicit setting for Permissions, EmbedCode[obj] willeffectively use SetOptions to change permissions of a cloud object obj,according to an embodiment.

ExternalTypeSignature->{{“var₁”->“type₁”, . . . }, “rettype”} specifiesthat var_(i) should be of external type type_(i), and that the returntype for the whole function should be rettype.

ExternalTypeSignature->{{“type₁”, “type₂”, . . . }, “rettype”} takes thenth argument to be of type type_(n).

The type_(i) are native types specified as they are named in the targetlanguage.

In many languages, possible external types include: “int”, “double”,“string”.

The types of arguments can often be inferred from other data inAPIFunction, etc. where they appear. A type of Automatic will use theinferred form.

In languages where types are used, the return type typically has to beset explicitly.

ExternalTypeSignature->“rettype” specifies the return type, and ifpossible infers all argument types.

In languages with dynamic typing, or without types, types do not usuallyhave to be set.

FIG. 32A illustrates an example notebook 3200 in which EmbedCode,CloudDeploy, and APIFunction are used to generate HTML code foraccessing an API deployed to the cloud. The generated HTML code can beinserted into source code of a web page in order for the web page toutilize the API. FIG. 32B illustrates an example web page that utilizesthe generated HTML code.

FIG. 33 illustrates an example notebook 3300 in which EmbedCode,CloudDeploy, and APIFunction are used to generate Python code foraccessing an API deployed to the cloud. The generated Python code can beinserted a Python source code file to allow the Python code to accessthe API.

FIG. 34 illustrates an example notebook 3400 in which EmbedCode,CloudDeploy, and APIFunction are used to generate JAVA code foraccessing an API deployed to the cloud. The generated JAVA code can beinserted a JAVA source code file to allow the JAVA code to access theAPI.

FIG. 35 illustrates an example notebook 3500 in which EmbedCode,CloudDeploy, and APIFunction are used to generate JAVA code foraccessing an API deployed to the cloud. The generated JAVA code can beinserted a JAVA source code file to allow the JAVA code to access theAPI.

FIG. 36 illustrates an example notebook 3600 in which EmbedCode is usedto generate JAVA code for accessing an API deployed to the cloud. Thegenerated JAVA code can be inserted a JAVA source code file to allow theJAVA code to access the API. In the example of FIG. 36, the object “co”is as defined in FIG. 35.

In various embodiments, functions describe herein can be modified,omitted, combined with other functions, etc. For example, in someembodiments, CloudDeploy and FormFunction are combined into singlefunction, in an embodiment. As another example, CloudDeploy andAPIFunction are combined into single function, in an embodiment. Asanother example, CloudDeploy and EmbedCode are combined into singlefunction, in an embodiment. As another example, CloudDeploy andEmbedCode and APIFunction are combined into single function, in anembodiment. As another example, CloudDeploy and EmbedCode andFormFunction are combined into single function, in an embodiment.

Unless specifically stated otherwise, discussions herein using wordssuch as “processing,” “computing,” “calculating,” “determining,”“presenting,” “displaying,” or the like may refer to actions orprocesses of a machine (e.g., a computer) that manipulates or transformsdata represented as physical (e.g., electronic, magnetic, or optical)quantities within one or more memories (e.g., volatile memory,non-volatile memory, or a combination thereof), registers, or othermachine components that receive, store, transmit, or displayinformation.

As used herein any reference to “one embodiment” or “an embodiment”means that a particular element, feature, structure, or characteristicdescribed in connection with the embodiment is included in at least oneembodiment. The appearances of the phrase “in one embodiment” or thephrase “in an embodiment” in various places in the specification are notnecessarily all referring to the same embodiment.

Some embodiments may be described using the expression “coupled” and“connected” along with their derivatives. For example, some embodimentsmay be described using the term “coupled” to indicate that two or moreelements are in direct physical or electrical contact. The term“coupled,” however, may also mean that two or more elements are not indirect contact with each other, but yet still co-operate or interactwith each other. The embodiments are not limited in this context.

As used herein, the terms “comprises,” “comprising,” “includes,”“including,” “has,” “having” or any other variation thereof, areintended to cover a non-exclusive inclusion. For example, a process,method, article, or apparatus that comprises a list of elements is notnecessarily limited to only those elements but may include otherelements not expressly listed or inherent to such process, method,article, or apparatus. Further, unless expressly stated to the contrary,“or” refers to an inclusive or and not to an exclusive or. For example,a condition A or B is satisfied by any one of the following: A is true(or present) and B is false (or not present), A is false (or notpresent) and B is true (or present), and both A and B are true (orpresent).

In addition, use of the “a” or “an” are employed to describe elementsand components of the embodiments herein. This is done merely forconvenience and to give a general sense of the description. Thisdescription should be read to include one or at least one and thesingular also includes the plural unless it is obvious that it is meantotherwise.

At least some of the various blocks, operations, and techniquesdescribed above may be implemented utilizing hardware, a processorexecuting firmware instructions, a processor executing softwareinstructions, or any combination thereof. When implemented in hardware,the hardware may comprise one or more of discrete components, anintegrated circuit, an ASIC, a programmable logic device, etc. Whenimplemented utilizing a processor executing software or firmwareinstructions, the software or firmware instructions may be stored in anytangible, non-transitory computer readable medium or media such as amagnetic disk, an optical disk, a tape drive, a RAM, a ROM, a flashmemory, a memory of a processor, etc. Likewise, the software or firmwareinstructions may be delivered to a user or a system via any known ordesired delivery method including, for example, on a tangible,non-transitory computer readable medium or media, or via communicationmedia. The software or firmware instructions may include machinereadable instructions that, when executed by the processor, cause theprocessor to perform various acts.

Upon reading this disclosure, those of skill in the art will appreciatestill additional alternative structural and functional designs for asystem and a process for identifying terminal road segments through thedisclosed principles herein. Thus, while particular embodiments andapplications have been illustrated and described, it is to be understoodthat the disclosed embodiments are not limited to the preciseconstruction and components disclosed herein. Various modifications,changes and variations, which will be apparent to those skilled in theart, may be made in the arrangement, operation and details of the methodand apparatus disclosed herein without departing from the spirit andscope defined in the appended claims.

What is claimed is:
 1. A method, comprising: receiving, at one or morecomputers, programmer input in a first programming language, theprogrammer input including i) a built-in function of the firstprogramming language, the built-in function corresponding to generatingcode for remotely invoking an electronic object deployed, or to bedeployed, on a server via a communication network, and ii) a parameterthat indicates the electronic object, wherein the code for invoking theelectronic object comprises a) code in a second programming languagedifferent than the first programming language, or b) code in a markuplanguage interpretable by a web browser; and evaluating, at one or morecomputers, the programmer input to: i) generate the code for remotelyinvoking the electronic object deployed, or to be deployed, on theserver, and ii) if the electronic object is not yet deployed on theserver, deploy the electronic object on the server; wherein the code forremotely invoking the electronic object is generated for inclusion in afile corresponding to a web page or a program written in the secondprogramming language.
 2. The method of claim 1, wherein evaluating theprogrammer input comprises evaluating the programmer input to generatethe code for remotely invoking the electronic object to employ a handleto the electronic object to invoke the electronic object.
 3. The methodof claim 2, wherein the parameter that indicates the electronic objectincludes the handle to the electronic object.
 4. The method of claim 1,wherein: receiving the programmer input in the first programminglanguage comprises receiving programmer input, in the first programminglanguage, corresponding to deploying the electronic object to theserver; and evaluating the programmer input comprises evaluating theprogrammer input to deploy the electronic object to the server so thatthe electronic object is accessible via the communication network. 5.The method of claim 4, wherein: the built-in function of the firstprogramming language is a first built-in function; and receiving theprogrammer input corresponding to deploying the electronic object to theserver includes receiving a second built-in function of the firstprogramming language, the second built-in function corresponding todeploying electronic objects to the server.
 6. The method of claim 4,wherein: receiving the programmer input in the first programminglanguage comprises receiving programmer input, in the first programminglanguage, that defines functionality of the electronic object when theelectronic object is evaluated by the server.
 7. The method of claim 1,wherein the electronic object includes code in a third programminglanguage different than the first programming language.
 8. The method ofclaim 7, wherein: the code for invoking the electronic object comprisescode in the second programming language; and the third programminglanguage is different than the second programming language.
 9. Themethod of claim 1, wherein the code for invoking the electronic objectcomprises one or more of i) Hypertext Markup Language (HTML) elements,ii) Extensible Hypertext Markup Language (XHTML) elements, iii)Extensible Markup Language (XML) elements, and iv) style sheets.
 10. Themethod of claim 1, wherein the code for invoking the electronic objectcomprises, at least, one of i) Java code, ii) JavaScript code, iii)Python code, iv) C++ code, v) Objective C code, and vi) Xcode code. 11.A system, comprising: one or more processors; and one or more memorydevices coupled to the one or more processors, the one or more memoriesstoring machine readable instructions that, when executed by the one ormore processors, cause the one or more processors to: receive programmerinput in a first programming language, the programmer input including i)a built-in function of the first programming language, the built-infunction corresponding to generating code for remotely invoking anelectronic object deployed, or to be deployed, on a server via acommunication network, and ii) a parameter that indicates the electronicobject, wherein the code for invoking the electronic object comprises a)code in a second programming language different than the firstprogramming language, or b) code in a markup language interpretable by aweb browser; and evaluate the programmer input to: i) generate the codefor remotely invoking the electronic object deployed, or to be deployed,on the server, and ii) if the electronic object is not yet deployed onthe server, deploy the electronic object on the server; wherein the codefor remotely invoking the electronic object is generated for inclusionin a file corresponding to a web page or a program written in the secondprogramming language.
 12. The system of claim 11, wherein the one ormore memories further store machine readable instructions that, whenexecuted by the one or more processors, cause the one or more processorsto evaluate the programmer input to generate the code for remotelyinvoking the electronic object to employ a handle to the electronicobject to invoke the electronic object.
 13. The system of claim 12,wherein the parameter that indicates the electronic object includes thehandle to the electronic object.
 14. The system of claim 11, wherein:the programmer input in the first programming language includes codecorresponding to deploying the electronic object to the server; and theone or more memories further store machine readable instructions that,when executed by the one or more processors, cause the one or moreprocessors to evaluate the programmer input to deploy the electronicobject to the server so that the electronic object is accessible via thecommunication network.
 15. The system of claim 14, wherein: the built-infunction of the first programming language is a first built-in function;and the programmer input in the first programming language includes asecond built-in function of the first programming language, the secondbuilt-in function corresponding to deploying electronic objects to theserver.
 16. The system of claim 14, wherein: the programmer input in thefirst programming language comprises programmer input that definesfunctionality of the electronic object when the electronic object isevaluated by the server.
 17. The system of claim 11, wherein theelectronic object includes code in a third programming languagedifferent than the first programming language.
 18. The system of claim17, wherein: the code for invoking the electronic object comprises codein the second programming language; and the third programming languageis different than the second programming language.
 19. The system ofclaim 11, wherein the code for invoking the electronic object comprisesone or more of i) Hypertext Markup Language (HTML) elements, ii)Extensible Hypertext Markup Language (XHTML) elements, iii) ExtensibleMarkup Language (XML) elements, and iv) style sheets.
 20. The system ofclaim 11, wherein the code for invoking the electronic object comprises,at least, one of i) Java code, ii) JavaScript code, iii) Python code,iv) C++ code, v) Objective C code, and vi) Xcode code.
 21. The system ofclaim 11, further comprising: the server.
 22. A tangible, non-transitorycomputer readable medium, or media, storing machine readableinstructions that, when executed by one or more computer processors,cause the one or more computer processors to: receive programmer inputin a first programming language, the programmer input including i) abuilt-in function of the first programming language, the built-infunction corresponding to generating code for remotely invoking anelectronic object deployed, or to be deployed, on a server via acommunication network, and ii) a parameter that indicates the electronicobject, wherein the code for invoking the electronic object comprises a)code in a second programming language different than the firstprogramming language, or b) code in a markup language interpretable by aweb browser; and evaluate the programmer input to: i) generate the codefor remotely invoking the electronic object deployed, or to be deployed,on the server, and ii) if the electronic object is not yet deployed onthe server, deploy the electronic object on the server; wherein the codefor remotely invoking the electronic object is generated for inclusionin a file corresponding to a web page or a program written in the secondprogramming language.